4
I’m not being able to run my tests in Eclipse, below is a simple test that doesn’t work:
import org.junit.Assert;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
class TesteTest {
@BeforeEach
void setUp() throws Exception {
}
@Test
void test() {
Assert.assertTrue(true);
}
}
Error message: No test found with test Runner Junit 5
Run Configurations:
Libs:
what you want to test basically? There is no Class?
– Rafael
In this piece of code I am not testing any class, this example is just to test Junit, any test I do I get this same error message!
– Pedro Henrique
If you do not want to use Junit 5, there in the "Test Runner" field select "Junit 4".
– Allan Moreira Leite
There’s new way on how to configure your test with Junit 5 Explained on https://www.eclipse.org/community/eclipse_newsletter/2017/october/article5.php
– Willian Ronaldo