question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Not able to execute npx cypress-slack-reporter - `find mochareports`

See original GitHub issue

Hi!

Thanks so much creating this plugin! 🥇 💯 👍

I’m having issues running the execution part npx cypress-slack-reporter

npx cypress-slack-reporter Error: Cannot find test report @ /Users/ronakchovatiya/Documents/Work/.../mochareports

Specifically Set the following environment variables in your localhost or CI configuration. 🤔

i've created config.env.test file with my slack webhook $SLACK_WEBHOOK_URL - The full URL you created in the last step where does the export go? $ export SLACK_WEBHOOK_URL=yourWebhookUrlHere -

Execution $ npx cypress-slack-reporter --help - this works

Steps performed

  • yarn add cypress-slack-reporter --dev
  • yarn add mocha @5.4.2 (instead of the latest 6 which gave error)
  • yarn Added all of mochawesome reports (if i add the --reporter flag it works and i do get a html report)
  • Created Slack app and Webhook URL / Oauth
  • added code snippets for cypress.json and reporterOpts.json
  • I’m not using CIRCLE CI - need it to just run locally for now then will add gitlab later

Guess the main issue I’m faceing not know how to hook up the config.test.env file in my react app and error message for not finding mochareports i even created folder with same name in the specified place.

P.S - i’ve tried the same steps for the example repo you’ve created react-ts-testing-example Which has all setup - i am able to run the website locally and normal cypress test pass… But 😓 not able to run npx cypress-slack-reporter

System Info

MacOS Cypress : 3.3.0 “cypress-slack-reporter”: “^0.2.6”, “mocha-multi-reporters”: “^1.1.7”, “mochawesome”: “^3.1.2”, “mochawesome-merge”: “^1.0.7”, “mochawesome-report-generator”: “^3.1.5”,

Thanks again! 🙏

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:17 (10 by maintainers)

github_iconTop GitHub Comments

2reactions
rchovatiya88commented, May 22, 2019

ah /mochareports is manual folder i created, it doesn’t have any files.

1reaction
YOU54Fcommented, May 23, 2019

Cheers buddy! Glad it has worked for you! Good luck with Edge!

Thanks for the offer of a coffee! I’ve only been to America once (to NYC for a work conference) but plan on going out there with the wife soon, so you never know, might take you up on that 😆

Read more comments on GitHub >

github_iconTop Results From Across the Web

Not able to execute npx cypress-slack-reporter - `find ... - GitHub
Guess the main issue I'm faceing not know how to hook up the config.test.env file in my react app and error message for...
Read more >
cypress-slack-reporter - npm
A slack reporter for mochawesome reports generated by Cypress or other test frameworks using Mocha, for runs generated on CircleCI.
Read more >
Cypress-slack-reporter - npm.io
Programatically run Cypress via a script file with full report generation and Slack Reporting. For users who are not using CircleCi, you can...
Read more >
Using Mochawesome Reporter with Cypress
I am using above scripts to run and I was able to run my tests successfully but after the test execution I am...
Read more >
Slack Reporting for Cypress.io - Medium
npx cypress-slack-reporter --helpUsage: index.ts ... It is possible to run to run the slack-reporter programatically via a script
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found