I'm trying to get the test value after the run of all tests :
@Test
public void test1_test() {
boolean result = true;
assertTrue("TEST : ", result);
}
@Test
public void test2_test2() {
boolean result = false;
assertTrue("TEST2 : ", result);
}
public void getResultOfTest1AndTest2() {
????
}
Expected Output :
test1_test : true
test2_test : false
I would like to have a simple way to recover the values of each test. Unfortunately, I did not find any post that could help me. Should we necessarily go through Listeners?
Thank you for your answer,
Have a nice day,
Nolan
Aucun commentaire:
Enregistrer un commentaire