In Intellij, right click on a test does not present a “Run” option

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() {

Leave a Comment