--
You received this message because you are subscribed to the Google Groups "scala-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scala-user+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
@Josh,The use case is this project, and the problem is as described here. Basically I have a plugin that needs to be used to test a subproject, but also needs to be publishable separately so other people can use it to test stuff.Currently I'm doing the "copy everything into project/src/main/scala" route, but that has the downside that it makes any error in the plugin make me unable to enter the SBT prompt, which is not what I want. It also makes @paulp mad.Another viable solution (if it exists?) would be to instantiate the test framework reflectively. One subproject's test framework is done this way, but the other project requires the testframework to be instantiated with some arguments passed to it by SBT, and I'm not aware of any way to do this reflectively.
testOptions += Tests.Argument(TestFrameworks.JUnit, "-q", "-v")
That's how you can pass test options down to a framework reflectively. If you need help working on a totally reflective-based approach let me know. You really really want to try to do this for max flexibility. You can then just have `dependsOn(jsPlugin % "test")` and be done then.
If you have time, I can jump on irc or g+ to discuss in person. Very much excited about uTest myself.
- josh
They're not command-line arguments though, but structured scala-object arguments, in my case an entire Rhino interpreter. Perhaps it's possible to restructure my code to work without passing structured data objects, but that seems like a last ditch thing (since unnecessary serializing-to-strings is the root of all evil)
testOptions in Test += Tests.Cleanup( (loader: ClassLoader) => ... )
inputs: Seq[File],classpath: Seq[File],console: Option[Console],trace: (=> Throwable) => Unit