-
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
smoketests proposal: one test file per url #11950
Comments
I mentioned this in #9676 (review) that I think this approach makes the most sense given the goals here. My main issue is that we haven't proven ourselves to be great namers (witness I'll also add to the goal that I really like being able to do Maybe fuzzy id checking? Even |
we also opened up smokehouse for others to use (like plugins), and at least publisher-ads uses it, so we'll have to be mindful of who we're breaking/help them update as it's sort of part of our public API now. In theory we could update without breaking (still have expectations be an array, but only have a single item in any of the core ones), but ideally we can simplify the type if we aren't going to have multiple tests in each file. |
problem
right now we have the https://github.com/GoogleChrome/lighthouse/tree/master/lighthouse-cli/test/smokehouse/test-definitions and within each
expectation
file there are >=1 tests. (akaindividualTests
)as of aug 2020, we have 39 URLs we load. and they're defined across 16 files. (the 16 are selectable as 'pwa', 'dbw' 'pwa2', etc etc).
we have this
yarn smoke dbw
method of filtering but then if there are 4 URLs withindbw
and we only want to run one of them... it usually leads to commenting out 90% of a file. not great.proposal
each "expectation" file has just one URL.
we can still use slugs like
tti-tricky
orseo-tap-targets
as the suffix to theyarn smoke
invocation. (and should typically match the relevant filenames). So that style of filtering is still good.(@connorjclark points out we do have some shared code like this now, but that seems quite solvable. )
if implemented, i don't think we need #9676 (which adds
--only-urls
and--only-audits
to smokehouse cli)(originally proposed here #9676 (comment) )
edit: we'd need to help pubads not break: https://github.com/googleads/publisher-ads-lighthouse-plugin/tree/master/lighthouse-plugin-publisher-ads/test/smoke
The text was updated successfully, but these errors were encountered: