java -cp "lib/*" org.scalatest.tools.Runner -w "com.company" -eDF -R lib/my_tests.jar
it works as expected, but ./scalatest-native -w "com.company" -eDF -R lib/my_tests.jar
returns No tests were executed.
. Am I missing something obvious? Adding -s com.company.MySuite
fails with a ClassNotFoundException
so it looks like the native version isn't even looking into my_tests.jar? At this point I am not sure yet if I did something wrong with the native image generation or if I don't use scalatest's runner properly, possibly both :)
https://github.com/objektwerks/scala3
List(1, 2, 2, 3, 3, 3) should be (List(3, 2, 3, 1, 2, 3, 5))
<Click to see difference>
in Intellij which is nice.<Click to see difference>
List(1, 2, 2, 3, 3, 3) should contain theSameElementsAs List(3, 2, 3, 1, 2, 3, 5)
java.lang.NoSuchMethodError: 'void org.scalactic.TripleEqualsSupport.$init$(org.scalactic.TripleEqualsSupport)'
I am using scalatest/scalactic 3.2.9 building with mill. Any help is appreciated.
Hi, I upgraded to scalatest 3.2.9 from 3.0.9 and I get this compilation error:
type mismatch;
found : ResultOfATypeInvocation[ScriptResult.ScriptResultFailure] (in org.scalatest.words)
required: ResultOfATypeInvocation[_] (in org.scalatest.matchers.dsl)
result.failed.get shouldBe a[ScriptResultFailure]
but in the doc I read its supported the syntax smthg shouldBe a [Double]
where am I wrong?
@jorgeadriano fyi i have uploaded an example project for supersafe here: https://github.com/scalatest/supersafe-sbt-example
Thank you @cheeseng!
Scala-2.12
and scalatest 3.0
fixture.AsyncWordSpec
which works properly. The problem comes when I try to change the default execution context (which is a serial execution context provided by ScalaTest
) by the global (scala.concurrent.ExecutionContext.Implicits.global
). The suite is completed almost immediately with 0 tests completed. is there anything additional that needs to be done so that inner futures can run in a multi-threading execution context like the global one?