[Announcement] AWS Step Functions adds mocking support for testing workflows locally


AWS Step Functions Local, a runtime for debugging and testing state machine based workflows locally, is now designed to support mocking for service integrations, allowing you to run state machines without the need to call downstream services.

AWS Step Functions is a visual workflow service capable of orchestrating over 9,000 API actions from over 200 AWS services. Step Functions Local is a downloadable version of Step Functions that is designed to enable you to run, debug, and test state machines without leaving your development environment. Now, with Step Functions Local, you can mock the responses from your service integrations, helping save time and lower development efforts when building state machines.

Step Functions Local now supports all 200+ AWS services supported by the AWS SDK, along with Step Functions' optimized service integrations. You can choose whether to mock or call services while testing the decision logic, error handling, and data transformations within your state machines. You can also create multiple mocks per state to test the logic that handles errors, such as retry and catch statements.

To get started with Step Functions Local, download the runtime as either a Docker image or executable JAVA .jar format. Step Functions Local is not region dependent, but does require the AWS CLI to be setup on your local host. To learn more about mocking for Step Functions Local, read the launch blog and the Developer Guide.

What's New: https://aws.amazon.com/about-aws/whats-new/2022/01/aws-step-functions-support-workflows/
Blog: https://aws.amazon.com/blogs/compute/mocking-service-integrations-with-aws-step-functions-local/
Developer Guide: https://docs.aws.amazon.com/step-functions/latest/dg/sfn-local.html

  • This is an announcement migrated from AWS Forums that does not require an answer

asked 10 months ago33 views
1 Answer

To learn more about mocking for Step Functions Local, read this blog: [+] https://aws.amazon.com/blogs/compute/mocking-service-integrations-with-aws-step-functions-local/

answered 5 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions