You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First of all amazing work! I've spent more time than I should trying to re-route everything to stdout. This package has been a godsend.
Issue description
If a test is programmatically skipped with Mocha's this.skip() any commands made before skip() are not logged to the terminal, including commands in a beforeEach(). Is this intentional?
I noticed that when a test is skipped the test event handler attached to Mocha is invoked twice: Once when the test begins and again after this.skip(). The 2nd time the test argument has an err property set:
I don't know how all the command logs are pulled together but it appears commands captured before this.skip() are being discarded because startTest is called twice for the same test. Let me know if you need any additional info!
The text was updated successfully, but these errors were encountered:
First of all amazing work! I've spent more time than I should trying to re-route everything to stdout. This package has been a godsend.
Issue description
If a test is programmatically skipped with Mocha's
this.skip()
any commands made beforeskip()
are not logged to the terminal, including commands in a beforeEach(). Is this intentional?Steps to reproduce the issue
support/index.js
this.skip()
.What's the expected result?
All commands invoked in step 2, including the global beforeEach are logged to the terminal.
What's the actual result?
None of the commands invoked in step 2 are logged to the terminal.
Additional details / screenshot
Minimal Repro: https://github.com/mmayors/cypress-terminal-report-skipped-test
I noticed that when a test is skipped the
test
event handler attached to Mocha is invoked twice: Once when the test begins and again afterthis.skip()
. The 2nd time the test argument has anerr
property set:I don't know how all the command logs are pulled together but it appears commands captured before
this.skip()
are being discarded becausestartTest
is called twice for the same test. Let me know if you need any additional info!The text was updated successfully, but these errors were encountered: