Created
May 10, 2012 23:50
-
-
Save jto/2656641 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sbt._ | |
import Keys._ | |
import de.johoop.testngplugin.TestNGPlugin._ | |
object NGPlugin extends Plugin { | |
override def settings: Seq[Setting[_]] = super.settings ++ Seq( | |
scalaSource in Test <<= baseDirectory / "junit", | |
javaSource in Test <<= baseDirectory / "junit" | |
) ++ | |
inConfig(NGTest)(Defaults.testSettings ++ testNGSettings) ++ | |
Seq( | |
scalaSource in NGTest <<= baseDirectory / "test", | |
javaSource in NGTest <<= baseDirectory / "test", | |
libraryDependencies <++= (testNGVersion in NGTest)(v => Seq( | |
"org.testng" % "testng" % v % "ng", | |
"de.johoop" %% "sbt-testng-interface" % "2.0.2" % "ng")) | |
) | |
val NGTest = config("ng") extend(Test) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment