-
Notifications
You must be signed in to change notification settings - Fork 28
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
Remove hardcoded references to ScalaTest and/or ScalaCheck #84
Comments
@lloydmeta : The idea is that the user determines which test framework and which version of libraries the user needs. As far as I understand, ScalaTest changed the location of checkers and so, in this case, Ideally,
val scalaTestRunner = "doctest.runner.scalatest.v30.Framework"
val argsDocTest: Seq[String] = ...
val argsScalaTest: Seq[String] = ... // see: http://www.scalatest.org/user_guide/using_the_runner
val args = argsDocTest :: "--" :: argsScalaTest
...
val tf = new sbt.TestFramework(utestRunner)
testFrameworks ++= Seq(tf),
testOptions ++= Seq(Tests.Argument(tf, args)),
... In this case, the class
Please let me know what you think. Suggestions are welcome! :-) @tkawachi : your feedback, please. |
My only recommendation is that whatever solution is taken, that there be a reasonable default provided by this plugin that requires no additional configuration from the end user (e.g. add the this plugin and doctests "should work"). It could, for example that sbt-doctest works out of the box with Scalatest+Scalacheck for mindshare and legacy reasons, and the user can configure it to do otherwise, if they so wish. |
This plugin generates tests, but not run these. By seeing Framework.java, it seems not for a test generator. I'm rather thinking to add ScalaTest31 as a subclass of DoctestTestFramework. |
|
I've noticed that
TestGen
containssbt-doctest
should not assume that the user is always going to use ScalaTest + ScalaCheck.I the case of ScalaJS, chances that the application developer is employing uTest both in the JVM side and JS side. So this issue seems to be related to #52
The text was updated successfully, but these errors were encountered: