-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
35 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# Examples | ||
|
||
This module contains examples on how to use the assertions to test processes. | ||
|
||
## Example: _Pull Request Process_ | ||
|
||
This example demonstrates how to ... | ||
* Annotate a unit tests | ||
* Deploy processes to the test engine | ||
* Control process execution | ||
* Protect tests from flakiness caused by asynchronous processing in the engine | ||
* Manipulate the time of the engine to trigger timer events | ||
* Assert that deployment was successful | ||
* Assert a certain path was taken / not taken | ||
* Assert state of process instance variables | ||
* Navigate from the main process to spawned child process | ||
|
||
**Processes** | ||
|
||
The example is based on the following process: | ||
![Pull Request Created Process](assets/pr-created.png) | ||
|
||
[Source](src/test/resources/pr-created.bpmn) | ||
|
||
Which calls a subprocess _Automated tests_: | ||
|
||
![Automated Tests Process](assets/automated-tests.png) | ||
|
||
[Source](src/test/resources/automated-tests.bpmn) | ||
|
||
**Tests** | ||
|
||
[Source](src/test/java/io/camunda/zeebe/process/test/examples/PullRequestProcessTest.java) | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.