-
Notifications
You must be signed in to change notification settings - Fork 334
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ScalaTest providing incorrect results to SBT #167
Comments
Hi japgolly, This is caused because sbt uses the fully qualified suite name as a suite identifier, instead of the suiteId. This should really eventually be fixed in a new version of the Framework API we think, but in the meantime we are going to submit a PR to sbt to have it look for repeated suite class names and just accumulate the number of tests for that suite instead of replacing it. I won't close this until we submit the PR to sbt. Bill |
Pull request submitted to SBT: |
I just verified this is now working as desired in sbt 0.13.8, so closing this issue. Given: import org.scalatest._ class A extends FunSuite { class VanillaSuite extends Suites(new A, new B, new C) class ParalellisableDbTests extends Suites(new X, new Y, new Z) You get: [info] B: |
SBT's results differ from ScalaTests's results when using nested suites.
I'm making a big assumption here that ScalaTest is providing incorrect results but I don't know that that's fact.
My setup:
In SBT I have:
testOptions in Test := Seq(Tests.Filter(_.matches(".*Suite$")))
In my console, when I run tests, ScalaTest says:
SBT says:
I expect SBT to say:
The text was updated successfully, but these errors were encountered: