-
Notifications
You must be signed in to change notification settings - Fork 21
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
Parallel Cucumber only outputs JUnit .xml for 1 of the scenarios in each feature file #15
Comments
If I split my single feature file into 2 separate .feature files , each with on Scenario, then I get the expected behavior of 2 Junit output files. So, it seems that parallel_cucumber will not log JUnit output if there is more than one scenario in a Feature file? Is this true or what am I misunderstanding? My Git repo is updated if you want to see proof. |
Hey @djangofan, You're right JUNIT reports just overwrite each other. <% test_batch_id = "#{ENV['TEST_BATCH_ID']}" %>
parallel_reports: >
--format junit --out reports/junit_<%= test_batch_id %>/ Then you can run parallel cucumber with option |
Thanks @bayandin I tried your suggestion and it partially works. With my output directory set at reports/win10_chrome/ , it creates a directory called reports/win10_chrome/junit_ . Here is my cucumber.yaml content:
This suggests to me that TEST_BATCH_ID is not getting set? What would cause that? I don't need to explicitly set it do I? If so, to what? It reads my OUT_DIR variable just fine. |
Ok, i was able to hook onto this variable. Is this what you really meant? |
@djangofan It seems I know what's wrong. You use parallel_cucumber 0.1.22 from rubygems, but I've pushed 0.2.0.pre.36 version to rubygems. Internally we use this version. You can try it. PS. Thanks for using |
I got this all working now: https://github.com/djangofan/cuke-parallel-starter Except that I get a bunch of wierd warning output in the console that looks like:
|
I am running parallel from a Rakefile using parallel_cucumber. What am I doing wrong if I only get 1 JUnit file for 1 of the scenarios in my .feature file?
I think both of my threads are getting the same file-name (named by feature file path: TEST-features-the_internet-basics.xml ) and one over-writes the other?
I get a process_0.log and a process_1.log file in my root folder but the JUnit .xml output files are NOT named this way, ending with the thread id.
Here is my project: https://github.com/djangofan/watir-cuke-starter
Here is my test output (with 2 .feature files containing 3 scenarios: resulting in only 2 junit .xml output files):
The text was updated successfully, but these errors were encountered: