I have a parametrizedTest using Junit5. I would like to ignore the test for a subset of the parameters.
Question : Given a set of parameters, one of them is a boolean called ignoreTest. i would like to ignore the test for the set of parameters in which ignoreTest is true.
Is there a way to do that? One way is to put all the code of test in if(!ignoreTest). but this will hide the fact that we are ignoring that test in the Junit report. Is there a way to do better ?
Thanks in advance.
Aucun commentaire:
Enregistrer un commentaire