Discover edge cases automatically by testing properties instead of examples.
| Strategy design | Composite strategies for domain objects | | Example count | 100 for CI, 10 for dev, 1000 for release | | Database tests | Use explicit mode, limit examples | | Deadline | Disable for slow tests, 200ms default | | Stateful tests | RuleBasedStateMachine for state machines |
strategies Keywords: strategy, hypothesis, generator, fromtype, composite Solves: Generate test data, create strategies for custom types
Test basati sulle proprietà con ipotesi per scoprire automaticamente i casi limite. Da utilizzare durante il test degli invarianti, la ricerca di condizioni al contorno, l'implementazione di test con stato o la convalida di trasformazioni di dati. Fonte: yonatangross/orchestkit.