You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Any existing workaround to use java_test for executing scala tests (similar to #443), or is there a different approach to substitute the lack of scala_test for now? Scala test classes usually use org.junit.runner.RunWith and a custom JUnitRunner to execute (like this one for specs2).
Simple example:
packagecom.exampleimportorg.junit.runner.RunWithimportorg.specs2.mutable.Specificationimportorg.specs2.runner.JUnitRunner@RunWith(classOf[JUnitRunner])
classHelloWorldTestextendsSpecification {
"HelloWorld" should {
"have the correct message" in {
HelloWorld.message must_=="Hello world!"
}
}
}
The text was updated successfully, but these errors were encountered:
Any existing workaround to use
java_test
for executing scala tests (similar to #443), or is there a different approach to substitute the lack ofscala_test
for now? Scala test classes usually useorg.junit.runner.RunWith
and a customJUnitRunner
to execute (like this one for specs2).Simple example:
The text was updated successfully, but these errors were encountered: