I want to use different filename. Because Play2.0 has test directory in top level by default.
But current sbt does not configurable test filename.
https://github.com/harrah/xsbt/blob/v0.12.1/scripted/sbt/ScriptedTests.scala#L19
https://github.com/harrah/xsbt/blob/v0.12.1/scripted/sbt/ScriptedTests.scala#L54
https://github.com/harrah/xsbt/blob/v0.12.1/scripted/plugin/ScriptedPlugin.scala#L15-L27
The scripted framework isn't that sophisticated and I'm not sure how to keep it that way and allow configuring the name. Maybe it could also look for files with some extension. A pull request would be accepted, but perhaps it is reasonable for you to make the Play project a subproject, which wouldn't need a top-level test/? You might be able to override the name of that directory as well (possibly scalaSource in Test).
@xuwei-k what do you think? Look for an extension as well, like something.test?
I've hit the same issue. Why does the code even put some auxiliary file in the same directory as the code under test? If you could change this, it would work no matter what's in the directory.
Proposed solution:
test.test.scriptTo potential contributor: The relevant code locations are
Most helpful comment
I've hit the same issue. Why does the code even put some auxiliary file in the same directory as the code under test? If you could change this, it would work no matter what's in the directory.