Comments (9)
Released in v3.6.0 🥳
from cypress-mochawesome-reporter.
I never tried to use this reporter in parallel mode, but I don't think it would work.
Somehow the reporter needs to fetch the result files from each node and combine them, which is currently not implemented.
from cypress-mochawesome-reporter.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions.
from cypress-mochawesome-reporter.
I never tried to use this reporter in parallel mode, but I don't think it would work. Somehow the reporter needs to fetch the result files from each node and combine them, which is currently not implemented.
https://www.npmjs.com/package/cypress-parallel runs on the same machine, not on different nodes, and is actually quite interesting to help with basic parallel execution.
I've been able to set up everything to get the json files for each threads. If I run only 1 thread, the whole process works fine. The only issue is by using multiple threads, the first one to finish will trigger the after:run event and will build the report.
By disabling the events I get to a point where I have all json files, but I couldn't figure out how to manually ask to cypress mochawesome report to build the report. That would be the missing piece to make it works. But it may be out of scope for this project as it tries to be a simple solution for good reporting.
from cypress-mochawesome-reporter.
@lems3 can you please provide a simple repo with what you achieved so far?
I may have a solution, but I would like to use an example so I would have something to work on
from cypress-mochawesome-reporter.
I quickly built an example here based on our internal repo : https://github.com/PremierTechDigital/cypress-parallel-report
This is mostly a set of commands with the proper configuration to achieve the result "by hand" instead of using hooks and events in cypress directly. This way, we can be sure that all tests are done before compiling results.
So we're not going trough cypress-mochawesome-reporter to build our report. As cypress-parallel doesn't seems to have any way to properly follow all threads, we went back on doing things "manually".
from cypress-mochawesome-reporter.
The repo and the steps helped me a LOT, thanks.
Please download this reporter 3.6.0-rc.0
version and then follow the steps here
Let me know if it worked for you and if you have any comments/suggestions about the solution.
If everything is okay, I will write more documentation and publish this version.
from cypress-mochawesome-reporter.
@LironEr I just tested out your version and it does work as expected. I was able to get a single report when running tests in parallel. Thanks!
I also noticed that when running your version, I get this error Some test suites likely terminated without passing on results, exit with error
Upon investigation, I can confirm that this happens due to the excludeSpecPattern
in the cypress config. We do have 6 tests that have been excluded. It might be better to not worry about the tests that have been excluded to avoid this error/warning?
from cypress-mochawesome-reporter.
Hey @sidsalunke, I am glad to hear this version is working as expected (:
I will release v3.6.0
soon, probably without changes.
As for the issue you noticed, I'm not sure if it's a cypress, cypress-parallel, or this reporter problem.
if you want you can create a repo with the problem and steps to reproduce the issue so I try to have a look.
from cypress-mochawesome-reporter.
Related Issues (20)
- Marge Json output with html report HOT 4
- Fail to include screenshots in report with cypress > 12 HOT 8
- Single report for cypress parallelisation HOT 8
- Add video only on failed Tests HOT 3
- Video path formatted incorrectly HOT 1
- add a reportOption to avoid the deletion of the .jsons files HOT 1
- Report json it is not showing the steps HOT 2
- Video is added on not executed tests HOT 3
- Compatibility with https://github.com/currents-dev/cypress-cloud HOT 2
- Bug: Report is failing to get generated if the the test is passed on retry HOT 2
- Reporter not found when being use in NPM Workspaces HOT 1
- HTML Report screenshot link has backward slash in the front HOT 1
- Not compatible with cypress 12.17.3 (breaks enhancing reports with failing tests) HOT 3
- Video included with wrong path with changed specPattern HOT 2
- Keep track of previous executions like Allure reporter does HOT 1
- Cypress mochawesome report is showing a broken img HOT 3
- the function named convertImageToBase64(screenshotsDir, imagePath) from enhanceReport.js is not finding the screenshots HOT 2
- Failed screenshots not getting attached to html report HOT 6
- "require is not defined" error throws with cypress-mochawesome-reporter 3.6.1. HOT 4
- HTML report stopped generating after installation of cypress-image-diff HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cypress-mochawesome-reporter.