A sample c# application that executes a unit test in a Camunda process.
Process used as part of the sample:
This small application runs a unit test in the process showed before (ProcessUnitTest). In order to do that, it creates dynamically a docker container of Camunda Run (version 7.13.0) (DockerProcessEngine) and deploys the necessary models in this running docker container (ProcessEngineTestHelper).
After the test is done, the model is deleted, making sure that you keep data isolation for the next round (ProcessEngineTestHelper).
When all tests are done, the docker container is then removed (DockerProcessEngine).
You can execute the test by running "dotnet test" or through an IDE like Visual Studio Code.
Built with .NET Core 3.1 and the following libraries:
- Camunda.Api.Client - 2.5.1
- Docker.DotNet - 3.125.2
- Microsoft.NET.Test.Sdk - 16.6.1
- NUnit - 3.12.0
- Nunit3TestAdapter - 3.17.0
Only supports environments informed above.
- Create examples for more scenarios (asynchronous continuations, timers, user tasks...).
- Create a separate library to bootstrap the Camunda engine.
- Create an assert library for .NET (similar to the java one).