SBT/Activator are not running all of the tests in my project. Is there something I'm missing?
Eg 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);
}
}
It's in the test folder, has all attributes junit expects, yet does not run when I execute 'sbt test' or 'activator test'. It only seems to run the files that end with IntegrationTest... Is there something I need to do differently? Can't find any solution here.
'activator clean test' fixed this for me. Unsure why - I've worked with sbt for a long time with scala and have never seen this.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With