Sbt / Activator does not run all tests in a Play2 java project

SBT / Activator does not run all tests in my project. Is something missing?

For example, this is a test:

public class ApplicationTest {

    @Test
    public void simpleCheck() {
        int a = 1 + 1;
        assertThat(a).isEqualTo(2);
    }

    @Test
    public void renderTemplate() {
        assert(1==1);
    }


}

In the test folder there are all the attributes expected by junit, but it does not execute when I run 'sbt test' or 'test test. It seems that files are running that end with IntegrationTest ... Is there something I need to do differently? Unable to find a solution.

+4
source share
1 answer

'activator cleaning test' fixed this for me. It is not clear why - I worked with sbt with scala for a long time and never saw this.

+12
source

All Articles