Giter Site home page Giter Site logo

Question : Does mochawesome .json not come for parallel runs facing issue , getting an issue in after events (facing this issue in 0.11.0) about cypress-parallel HOT 1 OPEN

Infurnia-Nitin-Upadhyaya avatar Infurnia-Nitin-Upadhyaya commented on June 1, 2024
Question : Does mochawesome .json not come for parallel runs facing issue , getting an issue in after events (facing this issue in 0.11.0)

from cypress-parallel.

Comments (1)

bdimitrovski avatar bdimitrovski commented on June 1, 2024

Same here, getting:

An error was thrown in your plugins file while executing the handler for the after:run event.

The error we received was:

Error: Pattern /Users/bojandimitrovski/Projects/top/top-web/scripts/tests/cypress/cypress/reports/html/.jsons/*.json matched no report files
    at /Users/bojandimitrovski/Projects/top/top-web/scripts/tests/cypress/node_modules/mochawesome-merge/lib/index.js:14:11
    at Array.map (<anonymous>)
    at /Users/bojandimitrovski/Projects/top/top-web/scripts/tests/cypress/node_modules/mochawesome-merge/lib/utils.js:3:46
    at merge (/Users/bojandimitrovski/Projects/top/top-web/scripts/tests/cypress/node_modules/mochawesome-merge/lib/index.js:82:17)
    at mergeAndCreate (/Users/bojandimitrovski/Projects/top/top-web/scripts/tests/cypress/node_modules/cypress-mochawesome-reporter/lib/generateReport.js:12:24)
    at generateReport (/Users/bojandimitrovski/Projects/top/top-web/scripts/tests/cypress/node_modules/cypress-mochawesome-reporter/lib/generateReport.js:56:20)
    at afterRunHook (/Users/bojandimitrovski/Projects/top/top-web/scripts/tests/cypress/node_modules/cypress-mochawesome-reporter/lib/index.js:35:9)
    at Object.handler (/Users/bojandimitrovski/Projects/top/top-web/scripts/tests/cypress/node_modules/cypress-mochawesome-reporter/plugin.js:9:11)
    at invoke (/Users/bojandimitrovski/Library/Caches/Cypress/12.9.0/Cypress.app/Contents/Resources/app/packages/server/lib/plugins/child/run_plugins.js:183:18)
    at /Users/bojandimitrovski/Library/Caches/Cypress/12.9.0/Cypress.app/Contents/Resources/app/packages/server/lib/plugins/util.js:59:14
    at tryCatcher (/Users/bojandimitrovski/Library/Caches/Cypress/12.9.0/Cypress.app/Contents/Resources/app/node_modules/bluebird/js/release/util.js:16:23)
    at Function.Promise.attempt.Promise.try (/Users/bojandimitrovski/Library/Caches/Cypress/12.9.0/Cypress.app/Contents/Resources/app/node_modules/bluebird/js/release/method.js:39:29)
    at Object.wrapChildPromise (/Users/bojandimitrovski/Library/Caches/Cypress/12.9.0/Cypress.app/Contents/Resources/app/packages/server/lib/plugins/util.js:58:23)
    at RunPlugins.execute (/Users/bojandimitrovski/Library/Caches/Cypress/12.9.0/Cypress.app/Contents/Resources/app/packages/server/lib/plugins/child/run_plugins.js:164:21)
    at EventEmitter.<anonymous> (/Users/bojandimitrovski/Library/Caches/Cypress/12.9.0/Cypress.app/Contents/Resources/app/packages/server/lib/plugins/child/run_plugins.js:56:12)
    at EventEmitter.emit (node:events:527:28)
    at EventEmitter.emit (node:domain:475:12)
    at process.<anonymous> (/Users/bojandimitrovski/Library/Caches/Cypress/12.9.0/Cypress.app/Contents/Resources/app/packages/server/lib/plugins/util.js:33:22)
    at process.emit (node:events:527:28)
    at process.emit (node:domain:475:12)
    at process.emit.sharedData.processEmitHook.installedValue [as emit] (/Users/bojandimitrovski/Library/Caches/Cypress/12.9.0/Cypress.app/Contents/Resources/app/node_modules/@cspotcode/source-map-support/source-map-support.js:745:40)
    at emit (node:internal/child_process:938:14)
    at processTicksAndRejections (node:internal/process/task_queues:84:21)

whenever I want to run test in parallel, configured my script in package.json like:

"tests:parallel": "cypress-parallel -s test -m false -t 2 -d 'cypress/e2e/*.spec.ts'"

from cypress-parallel.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.