Skip to content

Automated testing of workflow schemes with testcontainers and mstest

Notifications You must be signed in to change notification settings

optimajet/workflow-schemes-testing

Repository files navigation

How to test workflow schemes

Why testing is necessary

Automated testing simplifies the development of business logic because the behavior of workflow schemes can be verified simply by running tests. Reliable tests ensure that scheme changes doesn't mess up existing logic. In addition to reducing development time, this lowers the chance of bugs.

What's in the guide

Following this guide, you'll write automated tests for the Vacation request workflow scheme from the Workflow Engine Demo (you can learn more about the Demo in this article. To do this, we'll create a separate project in the sample solution and use the following testing tools:

  • MSTest framework will run and process the tests.
  • Testcontainers package will create an isolated container for the database.
  • Mockups will make it easier to configure tests.

After writing the testing architecture, we'll write three data-driven tests.

See the full article here.