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

expose "slow" CLI parameter and pass-through to Mocha #101

Merged
merged 4 commits into from
Jul 26, 2023
Merged

Conversation

dlockhart
Copy link
Member

Mocha has a concept of a "slow" threshold that it uses to highlight slow/normal/fast tests in reports. It defaults to 75ms. Tests which run in at most half that value are "fast", tests which take longer than that value are "slow" and everything else is "normal".

This exposes slow as a CLI argument to d2l-test-runner and passes it through to Mocha (similar to timeout). It also sets a default value for vdiff tests of 500ms.

@dlockhart dlockhart requested a review from a team as a code owner July 26, 2023 14:31
@@ -14,6 +14,7 @@ const BROWSER_MAP = {
safari: 'webkit',
webkit: 'webkit'
};
const DEFAULT_VDIFF_SLOW = 500;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm guessing we'll want to tweak this later once we have vdiff running in core and have a better idea of what "slow" means for visual-diff. We may also want different values locally compared to CI.

@dlockhart dlockhart merged commit 0fd8bc3 into main Jul 26, 2023
1 check passed
@dlockhart dlockhart deleted the dlockhart/slow branch July 26, 2023 21:47
@ghost
Copy link

ghost commented Jul 26, 2023

🎉 This PR is included in version 0.23.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@ghost ghost added the released label Jul 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants