-
Notifications
You must be signed in to change notification settings - Fork 99
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
Only report from last session is available with multiCapabilities and maxSessions = 1 #47
Comments
Maybe pathBuilder from the README will help by write the reports to different path new HtmlReporter({
baseDirectory: '/tmp/screenshots'
, pathBuilder: function pathBuilder(spec, descriptions, results, capabilities) {
// Return '<browser>/<specname>' as path for screenshots:
// Example: 'firefox/list-should work'.
return path.join(capabilities.caps_.browser, descriptions.join('-'));
}
}); |
Hi @mulyoved! Unfortunately, this doesn't help. First of all, it seems like the reports directory is cleaned on each run, so even with path builder only last report is available. And secondly, with this approach there will be separate HTML reports for each browser, but not the single HTML report which contains results from all browsers. |
Do you have consolidate and consolidateAll set to true? |
No I don't. What are these options? There are nothing about them in readme. |
They are related to jasmine reporters but I think we have something in common here. I have noticed same behavior as you described but when using shredTestFiles. Did you try preserveDirectory: true ? |
I tried |
I have also used shardTestFiles in my project and facing the same problem. Is there any workaround to get all the specs result in a single file. |
there are some forks like: https://github.com/NeverwinterMoon/protractor-jasmine2-screenshot-reporter and https://github.com/mlison/protractor-jasmine2-screenshot-reporter but they solve only corner cases. |
I did retest and it looks like However, it turned out that |
Example Protractor config:
Parameter
maxSessions: 1
forces Protractor to execute tests in different browsers in sequence, rather than in parallel. However, in HTML report only results from the last run are available (in this case - from the Internet Explorer).I believe results should be accumulated in the same way how it would be with
maxSessions: -1
The text was updated successfully, but these errors were encountered: