-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
[WIP] Implement slowTestThreshold Cypress option #870
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please merge latest develop branch into your PR branch
@@ -0,0 +1,616 @@ | |||
_ = require("lodash") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
changes to project.coffee should have its changes merged into project.js and then deleted
@@ -132,13 +143,14 @@ reporters = { | |||
} | |||
|
|||
class Reporter | |||
constructor: (reporterName = "spec", reporterOptions = {}, projectRoot) -> | |||
constructor: (reporterName = "spec", reporterOptions = {}, projectRoot, slowTestThreshold) -> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think slowTestThreshold belongs here. I think it should be passed into the mocha constructor as the slow
option, which would cut down on the verbosity of adding this option.
Also we need to whitelist sending the _slow
prop from the runner to the reporter
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
putting on WIP since this still needs tests
Unfortunately we have to close this PR due to inactivity. Please open a new PR to address the original issue. |
This work will address #447 by exposing a new
slowTestThreshold
option in thecypress.json
, with a default of 5000ms.I'm not a huge fan of the current implementation. Explicitly passing the
slowTestThreshold
value to the reporter and hard-setting it to each suite and test group doesn't seem sustainable, but I wanted to get this up for discussion and suggestions.