-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
report: make red/orange/green score color thresholds tougher #5831
Conversation
@@ -83,10 +83,10 @@ describe('util helpers', () => { | |||
it('calculates a score ratings', () => { | |||
assert.equal(Util.calculateRating(0.0), 'fail'); | |||
assert.equal(Util.calculateRating(0.10), 'fail'); | |||
assert.equal(Util.calculateRating(0.45), 'average'); | |||
assert.equal(Util.calculateRating(0.45), 'fail'); | |||
assert.equal(Util.calculateRating(0.55), 'average'); |
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.
can you add/tweak the test cases so we have coverage for 0.50 and .90
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.
🎉 🎉 🎉
@@ -20,11 +20,11 @@ | |||
|
|||
const ELLIPSIS = '\u2026'; | |||
const NBSP = '\xa0'; | |||
const PASS_THRESHOLD = 0.75; | |||
const PASS_THRESHOLD = 0.9; |
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.
🎉
@paulirish no problem. We're already running 3.1 on SpeedCurve and noticed scores weren't aligned. |
For harmony with PSI thresholds.
note that
Util.PASS_THRESHOLD
also affects whentitle
vsfailureTitle
is selected for an audit@paulirish