|
|
|
|
|
by stickfigure
543 days ago
|
|
Parameterized tests in Junit are basically the same as decorators: @ParameterizedTest
@ValueSource(strings = {"first", "second"})
void fooGoesBar(String param) {
...
}
Also, once you get used to assertj, you'll never want single-assert again. It's fantastically useful to know (for example) not just that two lists aren't equal, but specifically what elements differ. |
|
Pytest shows the diff as well when using assert: