mirror of
https://github.com/sbt/sbt.git
synced 2026-10-06 10:03:56 +02:00
Add test suite for the sbt scripted plugin.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user