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

tests: split smoke tests into one test per file #13461

Merged
merged 21 commits into from
Dec 6, 2021

Conversation

brendankenny
Copy link
Member

delayed follow up to #12819

Finally splits the smoke tests into a single test per file. Each file exports its own test definition, id, expectations and optional config and runSerially. We discussed this a bit here and here.

This PR is very big, but I've verified all the same tests and assertions are running before and after. Happy to break it up beyond the current smoke-slug-per-commit like it is.

The PR also breaks blame in a ton of places, but (I think) sets us up for much better blame going forward...e.g. with configs previously not tied to a particular test, it's difficult to see if a certain setting is required for all of the tests using that config or just one, and the other tests happened to work with the updated config so weren't changed.

There do seem to be a few places places where configs were overly complicated for most of the tests running against them (e.g. the smoke perf-config sets budgets for all the perf tests even though only one asserts them), but I left them unaltered for now.

@brendankenny brendankenny requested a review from a team as a code owner December 3, 2021 19:15
@brendankenny brendankenny requested review from connorjclark and removed request for a team December 3, 2021 19:15
@google-cla google-cla bot added the cla: yes label Dec 3, 2021
*/
'use strict';

import a11y from './test-definitions/a11y.js';
Copy link
Member Author

Choose a reason for hiding this comment

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

we could drop this file and have it just run all the files in test-definitions/ by default, similar to our *-test.js pattern for unit tests. It would need to be generated at build time for yarn build-smokehouse-bundle to replace it, though.

@brendankenny brendankenny merged commit 3d1ab7f into master Dec 6, 2021
@brendankenny brendankenny deleted the single-serving-smoke branch December 6, 2021 23:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants