My problem was that my test class wasn’t public. I needed:
public class MyTest {
@Test
public void testMethod() {
instead of:
class MyTest {
@Test
void testMethod() {
My problem was that my test class wasn’t public. I needed:
public class MyTest {
@Test
public void testMethod() {
instead of:
class MyTest {
@Test
void testMethod() {