Why don't junit tests get executed with "sbt test"? -
i using sbt version 0.13.2 pure java project.
my build.sbt has following line in it:
librarydependencies ++= seq("com.novocode" % "junit-interface" % "0.10" % "test") my test looks this:
import org.junit.test; import org.junit.before; import org.junit.runner.runwith; import org.junit.runners.junit4; import org.junit.assert.*;  @runwith(junit4.class) public class exampletest{     @test     public void firsttest(){         org.junit.assert.assertequals("2.5 + 7.5 = 10.0", 2.5 + 7.5, 10.0, .1);     } } when sbt test command line, test compiled, test not run. says 
compiling 1 java source [my path]/target/scala-2.10/test-classes... ... [info] passed: total 0, failed 0, errors 0, passed 0  [success] total time: 1 s, completed may 31, 2014 5:56:22 pm any idea how test executed?
when remove @runwith annotation, tests run fine. don't know why resolved problem.
Comments
Post a Comment