One test per question, each writing and asserting its own transcript under output/. Covers lifecycle, extensions, parameterized and dynamic tests, mocks vs spies, verification, strict stubs, static and constructor mocking, and flaky tests. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01CifR2BE7PBvRy5hT8TS9oz
11 lines
439 B
Plaintext
11 lines
439 B
Plaintext
--- order a_, b_ (alphabetical) ---
|
|
a_registersUser() -> SUCCESSFUL
|
|
b_assumesUserExists() -> SUCCESSFUL
|
|
--- order b_, a_ (reversed) ---
|
|
b_assumesUserExists() -> FAILED
|
|
a_registersUser() -> SUCCESSFUL
|
|
AssertionFailedError: registry should contain the user registered by another test ==> expected: <1> but was: <0>
|
|
--- time: the same code with an injected Clock ---
|
|
acceptsOrders() at 10:00 UTC : true
|
|
acceptsOrders() at 23:30 UTC : false
|