-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ReRun failing tests does not record feature data properly #890
Comments
Try to put your feature files under |
I will do that. Thanks million. |
Upgrade to 1.2.4 : Done |
Producing a
Using the feature option to specify a directory path (like
@nablik If you moved the feature files to:
you need to specify |
clear now, I have not understood things as they should be. |
Hi Nablik, I tried your way. I am able to rerun successfully. You just have to specify path while using command mvn clean verify -PautoTest -Dcucumber.tags="src/test/features/ --tags ~@Skip" Thanks a lot. |
Hi , I tried to rerun the failed scenario as mention above but i am getting the below error. Running example.cucumber._TestExampleCucumberIT Results : Failed tests: Tests run: 28, Failures: 6, Errors: 1, Skipped: 0 [WARNING] File encoding has not been set, using platform encoding Cp1252, i.e. build is platform dependent! The file encoding for reports output files should be provid @sugatmankar - It will be a great help if you can give a sample project or example to rerun the failed scenarios. Thanks a lot in advance. |
@brasmusson Thank you very much |
Hi, |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
To reproduce this behave I will provide the project structure:
Maven Project Name: example-cucumber
the Pom:
The structure:
src/test/java[example.cucumber]: contain integration Test and mapping class
ExampleMapping.java:
TestExampleCucumberIT.java: test runner that will perform the first test execution and record data in target/rerun.txt
the _TestExampleCucumberIT.java will perform the second test execution (as maven will run all IT class, the second one start with _ so it will be run after the previous test bulk)
Feature files are stored within the following structure :
The tests are actually very basic
Test0.feature:
the second one :
and the last one:
Now run the following maven command:
the out put will be
and the rerun.txt
BUT IF we change manually the file as following:
the tests will be re-executed again.
The missing piece is the prefix src/test/feature
Honestly I don't know how to fix this.
I hope that anyone can help. At least to point me to the source of the problem so I can try to fix.
The text was updated successfully, but these errors were encountered: