3 ms·
Set the state to a known state, test, assert the resultant state is what I think it should be. Also testing a sequence of operations is fine, but that's one te
by andreareina 4y ago
Set the state to a known state, test, assert the resultant state is what I think it should be.
Also testing a sequence of operations is fine, but that's one test not n of them. This is analogous to integration tests: they test several units but it's a single test.
- zemo 4y ago> Set the state to a known state how do you guarantee that the state that you set as the initial state is reachable in your system?
- andreareina 4y agoWith an integration test. It executes multiple operations that are order dependent, but then this is a single test, not multiple.