-
Notifications
You must be signed in to change notification settings - Fork 140
test
should warn when multiple test frameworks are on the classpath
#3620
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
Comments
Now, this is actually expected. //> using test.dep org.scalatest::scalatest::3.2.19
//> using toolkit default
//> using testFramework org.scalatest.tools.Framework
import org.scalatest.flatspec.AnyFlatSpec
class ExampleSpec extends AnyFlatSpec:
"example" should "work" in { assertResult(1)(1) } That being said, I would agree a warning should be raised in such a situation, possibly mentioning the test frameworks available in the project. |
test
should warn when multiple test frameworks are on the classpath
We should be able to use multiple test frameworks in a single target. Maybe we generate just one in Bloop config instead of both of them? Or is the test being run separetely without Bloop? |
We don't run tests with Bloop. |
Actually... perhaps we could just run all the test frameworks we can find, unless a framework is explicitly specified. |
Version(s)
Scala code runner version: 1.7.1
Scala version (default): 3.6.4
Describe the bug
adding
//> using toolkit default
to scalatest fileTo Reproduce
main.test.scala
Expected behaviour
importing toolkits shouldn't prevent scalatest from working silently.
The text was updated successfully, but these errors were encountered: