Add test suite for the sbt scripted plugin.

This commit is contained in:
Josh Suereth 2014-09-08 10:05:53 -04:00
parent 7e0c76f5a6
commit c922f175dd
9 changed files with 20 additions and 0 deletions

View File

@ -0,0 +1,5 @@
name := "test"
scriptedSettings
sbtPlugin := true

View File

@ -0,0 +1,3 @@
libraryDependencies <+= (sbtVersion) { sv =>
"org.scala-sbt" % "scripted-plugin" % sv
}

View File

@ -0,0 +1 @@
$ exists tmp2

View File

@ -0,0 +1 @@
$ exists tmp

View File

@ -0,0 +1,7 @@
> scripted some/good-test
-> scripted some/bad-test
-> scripted some/*
-> scripted someOther/*
-> scripted some/NonExistentTest
-> scripted someNonExistentGroup/*
-> scripted someNonExistentGroup/someNonExistentTest

View File

@ -10,6 +10,8 @@ import classpath.ClasspathUtilities
import java.lang.reflect.{ InvocationTargetException, Method }
import java.util.Properties
// TODO - This should hook into the sbt test-interface
// TODO - Adapt this into an autoplugin as well.
object ScriptedPlugin extends Plugin {
def scriptedConf = config("scripted-sbt") hide
def scriptedLaunchConf = config("scripted-sbt-launch") hide