-
Notifications
You must be signed in to change notification settings - Fork 121
Conversation
Rerun functionality added
cucumber-junit-re-runner.vm template
ExtendedRuntimeOptions.java to run custom cucumber runner.
Thanks @sugatmankar. I've had a look. I'll add comments directly. There are currently merge conflicts - please can you merge out and resolve them. |
@@ -50,6 +57,10 @@ Add the following to your POM file: | |||
<useTestNG>false</useTestNG> | |||
<!-- The naming scheme to use for the generated test classes. One of 'simple' or 'feature-title' --> | |||
<namingScheme>simple</namingScheme> | |||
<!-- Generate ReRun runners instead of JUnit and TestNG. --> | |||
<useReRun>true</useReRun> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, there are now two properties defining which template to use: useTestNG and useReRun.
This adds complication - should rerun + testNG be supported together?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't try for TestNG. Once i'm done with current changes. Will look for TestNG as well. :)
I run into network issues all the time, it is not that they are flaky tests, but rather flaky environments or sometimes bad luck with the configuration. |
does this support only junit runner ? |
@saikrishna321 for now we are supporting only for junit. |
@sugatmankar i think TestNG equally is important, would it possible to have it within this PR ? |
I will try for TestNG as well. Currently i'm focusing on junit re-runner with tag wise parallel. Because current implementation is like if we selected 10 tags from feature1.feature and 10 tags from feature2.feature, total 20 tags are there but only 2 parallel thread will be executed. Correct me if m wrong. so i have implemented IT generator which will generate IT file as per number of tags, it will also search for feature file where tag is present and only this path will be added in arg as "classpath:features/test1.feature". with this implementation i'm able to use rerun with tag wise parallel execution. |
I was going to make a patch for this pull request, but I do not have push access. |
@saikrishna i designed reruner by direct invoking cli class of cucumber. So So its common for both. Instead JunitRerun prop i will rename this as @JSON please fork this PR. This will create repo in your GitHub then play Apologize guys. :( I am out of town for few days. Now i can only read and On Fri 27 May, 2016, 7:42 PM Jason Smiley, [email protected] wrote:
|
Or just rerunCount? |
Please suggest which one will be appropriate? On Fri 27 May, 2016, 8:31 PM Jason Smiley, [email protected] wrote:
|
I believe that if this property is being used to determine how times we should rerun failing tests (regardless of which runner we are using), then I say we call it "rerunCount" so its generic and people want to use it. If its tied to a runner, then "RerunCount". Correct me if I am wrong, this only supports Junit and TestNG and nothing else (both of which use this property), so I say call it "rerunCount". |
Yeah i need to restore it as "ReRunCount" and need to remove @test tag in On Fri 27 May, 2016, 9:41 PM Jason Smiley, [email protected] wrote:
|
@sugatmankar What's the status with this PR? Need any help? |
@temyers added this functionality in tagwiseOutlinewise. You can link this with PR 53 |
Fixed issue of rerun tagwiseOutlinewiseIssueRerun To achieve Scenario Outline parallelism have to removed classpath: from velocity template. |
I see that we are up to 2.0.0 on the change log - was rerun functionality added to the project? or am I missing something |
Rerun hasn't been merged yet. The travis build is failing. 2.0.0 is still in SNAPSHOT. |
@JasonSmiley208 Please try Steps mentioned in comment here |
"cucumber-jvm-parallel-plugin" works just perfectly for me reducing our smoke tests run time on Jenkins to a great extent. I am happy with feature level parallel execution. Just the only limitation I find is missing support for "rerun". We do one time re-run of failed scenarios for few good reasons. @sugatmankar : Does this rerun functionality create scenariowise runners for failed ones and keep original runners still be at feature level? As I am happy to have feature level parallel execution. |
@SasidharParnandi First of all main goal was to parallalize scenarios as well as scenario outlines also. Yes rerun functionality will available in all three parallalization ( Feature wise, Scenario wise , Scenario Outline wise ). Fork my repo as per steps mentioned above comments else you can wait for release 2.0.0 @temyers Do you need any help merging this functionality ? |
@sugatmankar I'm in the process of reviewing and re-applying this. Progress is slow as I haven't got much time to spend on this at the moment. I'll tidy up what I have and create a new pull request to compare. |
Expected sequence will be Strict,features,tags,plugin,monochrome,glue
reimplemented in #89 . |
@sugatmankar Did you implement the same for TestNG runner? I am trying to run this but I cannot see the failed test to be run according to the rerunFailingTestsCount param. |
Hello Temyers,
It is my great pleasure to contribute rerun functionality.
Please have a look at it. let me know if i miss something.
Thanks & Regards
Sugad Mankar