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

Is there a way to silence warnings about missing video files? #341

Closed
kaiyoma opened this issue Jan 26, 2021 · 2 comments
Closed

Is there a way to silence warnings about missing video files? #341

kaiyoma opened this issue Jan 26, 2021 · 2 comments

Comments

@kaiyoma
Copy link

kaiyoma commented Jan 26, 2021

Describe the bug
The Cypress folks recently introduced an experimental feature to allow us to delete video files for tests that pass. This is great for minimizing the amount of disk space used, so I've implemented it for my organization, but now I'm seeing these warnings from mochawesome:

18:53:37  [mochawesome] Report JSON saved to .../mochawesome-report/mochawesome_002.json
18:53:37  
18:53:39  Warning: We could not find the video at the following path, so we were unable to process it.
18:53:39  
18:53:39  Video path: .../basic/data.spec.js.mp4
18:53:39  
18:53:39  This error will not alter the exit code.

Now that I know video files may be missing, and this is completely normal, is there a way to turn off these messages from mochawesome? They'll just fill up the logs with noise and serve as red herrings.

Environment (please complete the following information):

  • Platform: Windows 10, Linux
  • mochawesome version: 6.2.1
  • mocha (or other test library) version: Cypress 6.2.1
  • Node version: 14.15.0

Additional context
Here's the experimental feature from Cypress: cypress-io/cypress#2522 (comment)

@adamgruber
Copy link
Owner

Those warnings are not coming from mochawesome

@kaiyoma
Copy link
Author

kaiyoma commented Jan 26, 2021

Ah, my apologies.

@kaiyoma kaiyoma closed this as completed Jan 26, 2021
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