I have created tests for a module sending SMS-messages. The SMS provider sends a bunch of fault codes for different situations. In these unit tests I tested if the return codes I received matched the code which was expected in that particular test.
So create unit tests for situations you expect to pass and create unit tests for situations you expect to fail. This also helps you figuring out if you cover all use-cases for a specific scenario.
What kind of scenario would you like to create unit tests for?
We created a how-to for the UnitTesting module: Testing microflows using the UnitTesting module.
Example i want test the login microflow.