Guest User

custom test task

a guest
Apr 15th, 2016
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Groovy 0.52 KB | None | 0 0
  1. task runTests(type: JavaExec, dependsOn: 'testClasses') {
  2.     main = 'org.testng.TestNg'
  3.     classpath = files("./src/test/resources",
  4.                       project.sourceSets.main.compileClasspath,
  5.                       project.sourceSets.test.compileClasspath,
  6.                       project.sourceSets.main.runtimeClasspath,
  7.                       project.sourceSets.test.runtimeClasspath)
  8.     args = ["-parallel",  "methods", "-threadcount", "1", "-d", "./build/test-output", "./src/test/resources/masterSuite.xml"]
  9. }
Add Comment
Please, Sign In to add comment