4 ms·
Those are called dynamic tests and junit has them.
by jpnc 3y ago
Those are called dynamic tests and junit has them.
- Ygg2 3y agoYou can do that as well in Rust with libtest-mimic and nextest
- ollien 3y agoThanks, these are helpful recommendations. I'm currently working on a Gameboy emulator and making tests with many permutations is very verbose with `#[test_case]`. I'll have to check these out.
- Ygg2 3y agohttps://github.com/Ygg01/steel_yaml/blob/master/tests/yaml_test_suite.rs https://github.com/Ygg01/steel_yaml/blob/master/tests/yaml_t... Here is how I made dynamic tests for it. But cargo nextest is a game changer. Colored output + fast fail (configurable) + timeout detection is just great. https://nexte.st/book/custom-test-harnesses.html https://nexte.st/book/custom-test-harnesses.html