I have a huge JSON-File which contains testcases. (No I don't wanna show it here because it doesn't matter in this case to know the file) I parse the json file to my junit test - that works fine. But I've got 50 testcases and if I want to show each in Junit like: "test 0 from 50 passed" and have a list like: test 1 passed, test 2 passed, test 3 failed..
I have to put each testcase into a method. How can I dynamically do this? Is this possible in Junit? Because when I'm parsing the json, I don't know how many cases I have.
Aucun commentaire:
Enregistrer un commentaire