Advertisement
Guest User

Untitled

a guest
Jun 17th, 2019
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. task secondTry(type: Test) {
  2. onlyIf {
  3. file("build/reports/tests/test/testng-failed.xml").exists()
  4. }
  5. println file("build/reports/tests/test/testng-failed.xml").exists()
  6.  
  7. testClassesDir = sourceSets.test.output.classesDir
  8. classpath = sourceSets.test.runtimeClasspath
  9.  
  10. useTestNG() {
  11. suites("build/reports/tests/test/testng-failed.xml")
  12. }
  13. }
  14.  
  15. task secondTry(type: Test) {
  16. useTestNG() {
  17. useDefaultListeners = true
  18. reports.html.enabled = false
  19. options.suites("build/reports/tests/test/testng-failed.xml")
  20. }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement