1

I have seen this post on how to re-run failed tasks in cucumber.

I'm using jenkins IC and gradle as build tool.

How would you create a re-run task?

  1. Using gradle task? What syntax is used in my build.gradle today? Shell script?

    run { args += ['-f', 'html:build/reports/cucumber/', '-f', 'json:build/reports/cucumber/report.json', '--glue', 'com.waze.testing.cucumber', 'src/main/resources/features', '--tags', '~@ignore'] }

  2. Writing python scrip? The problem is I don't remember python.

  3. Using any jenkins cucumber plugin? (I have this plug in, but didn't see any helpful step)

Community
  • 1
  • 1
Elad Benda2
  • 13,852
  • 29
  • 82
  • 157
  • I guess You can use gradle task of type `Exec`. You can find docs here: http://www.gradle.org/docs/current/dsl/org.gradle.api.tasks.Exec.html – Opal Jul 22 '14 at 13:55
  • what is the syntax in build.gradle called? what kind of script is it? – Elad Benda2 Jul 22 '14 at 18:01
  • Is saw this question: http://stackoverflow.com/questions/24895370/how-can-i-run-new-gradle-task. The way of usage `Exec` task is good. – Opal Jul 23 '14 at 06:58
  • I don't know cucumber, but you might find some inspiration in the script I posted in this question: https://stackoverflow.com/questions/48815890/how-to-re-run-only-failed-junit-test-classes-using-gradle – Tom Tresansky Feb 15 '18 at 20:42

0 Answers0