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

add custom audit recipe #2255

Merged
merged 2 commits into from
May 16, 2017
Merged

add custom audit recipe #2255

merged 2 commits into from
May 16, 2017

Conversation

brendankenny
Copy link
Member

adds a custom gatherer/audit to our recipes. Happy to bikeshed on all of this :)

No rush on landing this, but we'll be using a version of this at I/O, so get in comments if you want to influence what we show there :)

@brendankenny brendankenny force-pushed the customrecipe branch 2 times, most recently from e6ad766 to d6c75f7 Compare May 15, 2017 23:08
'use strict';

module.exports = {
// Run our tests along with all the default Lighthouse tests.
Copy link
Contributor

Choose a reason for hiding this comment

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

"Run your custom tests...."

Copy link
Member Author

Choose a reason for hiding this comment

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

done

'searchable-audit'
],

// Create a new 'My site metrics' section in the default report for our results.
Copy link
Contributor

Choose a reason for hiding this comment

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

How about a 1., 2., 3., 4. on these.

Copy link
Member Author

Choose a reason for hiding this comment

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

done


This Lighthouse [gatherer](searchable-gatherer.js)/[audit](searchable-audit.js) pair will take that value from the context of the page and test whether or not it stays below a test threshold.

The config file tells Lighthouse where to find the gatherer and audit files, when to run them, and how to incoporate their output into the Lighthouse report.
Copy link
Contributor

Choose a reason for hiding this comment

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

incorporate

Copy link
Member Author

Choose a reason for hiding this comment

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

done

@ebidel ebidel merged commit 8047ef3 into master May 16, 2017
@ebidel ebidel deleted the customrecipe branch May 16, 2017 03:17
@benschwarz
Copy link
Contributor

I didn't get a chance to review, but I was coming here to give it a thumbs up. 🌮

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