Hi,
I'm using a definition like the following:
import sbt._
import Keys._
object MyPlugin extends AutoPlugin {
override def trigger: PluginTrigger = allRequirements
override def projectSettings: Seq[Setting[_]] = Defaults.itSettings ++ Seq(...)
override def projectConfigurations: Seq[Configuration] = Seq(Configurations.IntegrationTest extend (Test))
}
What I find is that this "masks" other tasks such as the run and test tasks (run becomes it:run, test becomes it:test):
[myproject] $ inspect run
[info] Input task: Unit
[info] Description:
[info] Runs a main class, passing along arguments provided on the command
line.
[info] Provided by:
[info] {file://myproject/}myproject/it:run
[info] Defined at:
[info] (sbt.Defaults) Defaults.scala:307
...
or
[myproject] $ inspect test
[info] Task: Unit
[info] Description:
[info] Executes all tests.
[info] Provided by:
[info] {file://myproject/}root/it:test
[info] Defined at:
[info] (sbt.Defaults) Defaults.scala:441
I further notice weird behavior when running test:test in a multi-module sbt project where running test:test on the root project fails some tests while running the same tests in the specific submodule works fine.
Is this a bug in sbt (I'm using version 0.13.15) or is this expected behavior?
Thanks & Best regards,
Martin