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

report: make red/orange/green score color thresholds tougher #5831

Merged
merged 2 commits into from
Aug 14, 2018

Conversation

brendankenny
Copy link
Member

@brendankenny brendankenny commented Aug 14, 2018

For harmony with PSI thresholds.

note that Util.PASS_THRESHOLD also affects when title vs failureTitle is selected for an audit

@paulirish

@@ -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');
Copy link
Member

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

Copy link
Collaborator

@patrickhulce patrickhulce left a 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;
Copy link
Collaborator

Choose a reason for hiding this comment

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

🎉

@brendankenny brendankenny merged commit 85e6ba9 into master Aug 14, 2018
@brendankenny brendankenny deleted the gettough branch August 14, 2018 16:56
@zeman
Copy link
Contributor

zeman commented Sep 7, 2018

screen shot 2018-09-07 at 12 18 09 pm

Looks like the score legend needs updating as well?

@paulirish
Copy link
Member

@zeman thx man! tackled in #5986. We'll ship a 3.1.1 soon with this.

@zeman
Copy link
Contributor

zeman commented Sep 7, 2018

@paulirish no problem. We're already running 3.1 on SpeedCurve and noticed scores weren't aligned.

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.

None yet

4 participants