Possible to apply Mocha test timeouts across a whole Feature? Or Globally? #1251
Answered
by
ghowardzoonou
ghowardzoonou
asked this question in
Q&A
-
Hello, as per subject - is it possible to apply Mocha test timeouts across a whole Feature? e.g. as per Suites here: https://mochajs.org/#timeouts? Or even Globally? I want individual Scenarios to fail if they are running for >10 mins each, etc. |
Beta Was this translation helpful? Give feedback.
Answered by
ghowardzoonou
Oct 17, 2024
Replies: 1 comment 2 replies
-
Does this work in a plain Cypress test? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, so yeh ended going down a bit of a rabbit hole with this one. In the end the way I could get a global test timeout working was by following this approach:
https://github.com/cypress-io/cypress-example-recipes/tree/master/examples/fundamentals__timeout
https://github.com/cypress-io/cypress-example-recipes/blob/master/examples/fundamentals__timeout/cypress/e2e/all-tests-spec.cy.js