Skip to content
Browse files

Moved plugin into test space (out of ng:*)

Removed Junitxmllistener from testListeners
Simplify sample build

Signed-off-by: Rob Loh <rloh@linkedin.com>
  • Loading branch information...
1 parent b35b481 commit dabfa2abc3f19e6af03c179e908d86b6ac7fec3b Rob Loh committed
Showing with 4 additions and 12 deletions.
  1. +0 −2 sample/project/Build.scala
  2. +4 −10 src/main/scala/NGPlugin.scala
View
2 sample/project/Build.scala
@@ -8,8 +8,6 @@ object ApplicationBuild extends Build {
val appVersion = "1.0-SNAPSHOT"
val appDependencies = Seq(
- "org.testng" % "testng" % "6.4",
- "de.johoop" %% "sbt-testng-interface" % "2.0.2"
)
val main = PlayProject(appName, appVersion, appDependencies, mainLang = SCALA).settings(
View
14 src/main/scala/NGPlugin.scala
@@ -7,13 +7,7 @@ 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"
- )
-
- lazy val NGTest = config("ng") extend(Test)
-}
+ override def settings: Seq[Setting[_]] = super.settings ++ testNGSettings ++ Seq(
+ testListeners in Test := Seq()
+ )
+}

0 comments on commit dabfa2a

Please sign in to comment.
Something went wrong with that request. Please try again.