StateMachineActions: Support func(rapid.TB) actions#66
Conversation
|
I usually write |
|
The primary motivation is to reuse actions and other test helpers across rapid tests, as well as plain tests using In my specific scenario, I wanted to test a very specific set and order of actions in a normal test, and guarantee that runs as part of every run. This was also useful to develop new actions by using a standard test with a specific set of actions. A couple of other benefits:
For cases where a state machine is only used for rapid tests, it's not necessary, but it helps with reusing the same type in other tests. |
This allows reuse actions from normal tests that use `testing.TB`. This is helpful for tests where there may be very specific test scenarios where some logic is abstracted into a common action.
2a4c7fe to
1e1ff53
Compare
1e1ff53 to
c9e8de3
Compare
|
Merged, thanks! |
|
Thank you! |
This allows reuse actions from normal tests that use
testing.TB.This is helpful for tests where there may be very specific test scenarios where some logic is abstracted into a common action.