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.

Run Cypress After Hook For Skipped Spec Files

See original GitHub issue

Is your feature request related to a problem? Please describe. When fail fast kicks in, cypress’ after hook also gets skipped. This creates an issue with plugins like cypress-terminal-reporter that rely on the hook to output details for debugging.

Describe the solution you’d like

  • Whether or not to run the after hook could be configurable .

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
anshap1719commented, May 31, 2021

@javierbrea Actually, they’ve fixed it on their end now. Thank you for the detailed reason. But I guess the priority of this can be reduced for now unless it’s affecting some other commonly used plugin.

1reaction
anshap1719commented, Apr 13, 2021

@javierbrea Sure.

Cypress: 7.0.0 Node: 15.6.0 Fail Fast: ^2.3.1 Terminal Reporter: ^3.0.3

Let me know if I should also create a reproducible example.

Read more comments on GitHub >

github_iconTop Results From Across the Web

After Spec API - Cypress Documentation
The after:spec event fires after a spec file is run. ... This will skip the compression and uploading of the video when recording...
Read more >
What are Cypress Hooks and How to use Hooks in Cypress?
Cypress provides only and skip tags to include/exclude specified test case/test suites from a specified test run.
Read more >
Skip test conditionally with Cypress - Filip Hric
In this blog, I'd like to show you various strategies and tools how you can skip your test and run them conditionally.
Read more >
it.skip tests run before() hook #18 - infosum/cypress-tags
Running the following: CYPRESS_INCLUDE_TAGS=@smoke ./node_modules/.bin/cypress run --browser chrome --spec cypress/integration/test_*.spec.
Read more >
Skip Before Each Hook - Gleb Bahmutov
Imagine that we have a Cypress project with end-to-end tests and a support file. The support file has the beforeEach hooks common to...
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