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

[WIP] Implement slowTestThreshold Cypress option #870

Closed
wants to merge 2 commits into from

Conversation

wesmangum
Copy link

@wesmangum wesmangum commented Nov 3, 2017

This work will address #447 by exposing a new slowTestThreshold option in the cypress.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.

  • add tests

@CLAassistant
Copy link

CLAassistant commented Nov 3, 2017

CLA assistant check
All committers have signed the CLA.

Copy link
Contributor

@Saibamen Saibamen left a 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

@jennifer-shehane jennifer-shehane removed the stage: needs review The PR code is done & tested, needs review label Jan 10, 2020
@jennifer-shehane jennifer-shehane requested a review from a team January 16, 2020 17:51
@@ -0,0 +1,616 @@
_ = require("lodash")
Copy link
Contributor

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) ->
Copy link
Contributor

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

Copy link
Contributor

@kuceb kuceb left a 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

@kuceb kuceb changed the title Implement slowTestThreshold Cypress option [WIP] Implement slowTestThreshold Cypress option Jan 16, 2020
@jennifer-shehane
Copy link
Member

Unfortunately we have to close this PR due to inactivity. Please open a new PR to address the original issue.

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

Successfully merging this pull request may close these issues.

5 participants