Skip to content
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

If the first describe is the same for different specs, which should be startet in own browser session -there are some difficulties with generating XML-Reports. #163

Closed
vinogradoff opened this issue Mar 4, 2017 · 1 comment

Comments

@vinogradoff
Copy link

vinogradoff commented Mar 4, 2017

I have put the question on Stackoverflow, but perhaps that can be solved only through fix in the framework.

http://stackoverflow.com/questions/42591171/jasminereporter-junitxmlreporter-overwrites-the-results-of-the-run

My specs share the same first describes (the second is different) e.g.

spec1.js:

describe("topic1",()=> {
  describe("testcase1",()=> {
   ...
  });
});

spec2.js:

describe("topic1",()=> {
  describe("testcase2",()=> {
   ...
  });
});

which works fine if I run the both specs in the same browser like:

protractor --specs spec1.js,spec2.js config.js

But as I want to restart the browser between runs of spec1.js and spec2.js with either:

protractor --specs spec1.js config.js; protractor --specs spec2.js config.js

or setting in capabilites:

shardTestFiles: true

then the junitresults.xml resp. junitresults-topic1.xml (depending on consolidateAll option beingtrue or false) is generated containing only the results of the last spec (spec2.js) run.

How can I get all the runs in my XML results?

@putermancer
Copy link
Collaborator

This issue seems related to both #175 and #149.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants