Purpose of TestActivityEnvironment

What is the purpose of the TestActivityEnvironment, and how does this differ from just testing the underlying activity directly?

I see that for example, it provides EncodedValue. Does this help confirm that the input/output encoding/decoding work as expected?


1 Like

The main purpose is to initialize Context to support activity.* operations. For example, you wouldn’t be able to test activity heartbeating when invoking the activity function directly.

Ah yes! That makes sense.