Closed justchokingaround closed 7 months ago
First off, thank you for contributing to Ares!
I agree that Ares should work well with parameterized tests. I would, however, like to avoid the approach presented here; otherwise we'd need that for all sorts of test execution annotations. The @PublicTest
and @HiddenTest
were already a mistake and should instead be @Public @Test
and @Hidden @Test
. The same goes for parameterized tests.
Have you tried that already? If it didn't work, we should fix that first.
But the code here looks as if it would already work. My suggestion in that case would be to not introduce two new annotations, but simply add integration tests that Ares works well in combination with @ParameterizedTest
.
Also, I would like to apologize for the late response, I haven't seen much happening here for a long time.
No problem. I have tested it using that approach and it does work. Thank for your response, I didn't know @PublicTest
and @HiddenTest
were "deprecated".
I think it would be a good addition to have Parameterized test annotations, since it would allow to avoid helper methods usage / code duplication when testing several different input cases.
I am not sure whether the version numbers are correct.
Here is an example of what it would look like:
(adapted from https://www.baeldung.com/parameterized-tests-junit-5)