mirror of https://github.com/sbt/sbt.git
Add test suite for the sbt scripted plugin.
This commit is contained in:
parent
7e0c76f5a6
commit
c922f175dd
|
|
@ -0,0 +1,5 @@
|
|||
name := "test"
|
||||
|
||||
scriptedSettings
|
||||
|
||||
sbtPlugin := true
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
libraryDependencies <+= (sbtVersion) { sv =>
|
||||
"org.scala-sbt" % "scripted-plugin" % sv
|
||||
}
|
||||
|
|
@ -0,0 +1 @@
|
|||
$ exists tmp2
|
||||
|
|
@ -0,0 +1 @@
|
|||
$ exists tmp
|
||||
|
|
@ -0,0 +1 @@
|
|||
$ exists tmp
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
> scripted some/good-test
|
||||
-> scripted some/bad-test
|
||||
-> scripted some/*
|
||||
-> scripted someOther/*
|
||||
-> scripted some/NonExistentTest
|
||||
-> scripted someNonExistentGroup/*
|
||||
-> scripted someNonExistentGroup/someNonExistentTest
|
||||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue