-
-
Notifications
You must be signed in to change notification settings - Fork 791
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
Simplify test running in CI and locally #2044
Conversation
2a70ff9
to
2d31c8a
Compare
5c933eb
to
caea3be
Compare
Bundle size report: Size Change: 0 B
ℹ️ View DetailsNo major changes |
0f60c70
to
b576ced
Compare
@HarelM Still in draft and a little stalled out. Don't worry about stepping on my toes here. |
consolidate jest tests under a single config Now you should be able to get meaningful results and IDE integration with simply "jest". Note that render tests are not included since they don't currently run under jest. wip remove extraneous X server fix and improve build tests style-spec fix style-spec build bump style-spec deps remove unnecessary dependency on node url package remove npm-plugin-playwright wip fix node version kick off eslint and stylelint via jest remove unused jest disable directives jest-runner-eslint ignore (grrr) use node lts fix config use jest builtin github action reporter revert eslint change Fail faster if gl package fails to return a context more wip more wip continue on error Update jest.config.ts Update test-all.yml Update jest.config.ts don't run eslint via jest update dependencies fix test script and remove test-unit-ci wip maybe fix test? i wonder if a 0-pixel framebuffer would work... maybe try filtering by path again wip refigure query tests (half the runtime and more readable) consolidate jest tests under a single config Now you should be able to get meaningful results and IDE integration with simply "jest". Note that render tests are not included since they don't currently run under jest. wip remove extraneous X server fix and improve build tests style-spec fix style-spec build bump style-spec deps remove unnecessary dependency on node url package remove npm-plugin-playwright wip fix node version kick off eslint and stylelint via jest remove unused jest disable directives jest-runner-eslint ignore (grrr) use node lts fix config use jest builtin github action reporter revert eslint change Fail faster if gl package fails to return a context more wip more wip continue on error Update jest.config.ts Update test-all.yml Update jest.config.ts don't run eslint via jest update dependencies fix test script and remove test-unit-ci wip maybe fix test? i wonder if a 0-pixel framebuffer would work... maybe try filtering by path again wip refigure query tests (half the runtime and more readable) consolidate jest tests under a single config Now you should be able to get meaningful results and IDE integration with simply "jest". Note that render tests are not included since they don't currently run under jest. wip remove extraneous X server fix and improve build tests style-spec fix style-spec build bump style-spec deps remove unnecessary dependency on node url package remove npm-plugin-playwright wip fix node version kick off eslint and stylelint via jest remove unused jest disable directives jest-runner-eslint ignore (grrr) use node lts fix config use jest builtin github action reporter revert eslint change Fail faster if gl package fails to return a context more wip more wip continue on error Update jest.config.ts Update test-all.yml Update jest.config.ts don't run eslint via jest update dependencies fix test script and remove test-unit-ci wip maybe fix test? i wonder if a 0-pixel framebuffer would work... maybe try filtering by path again wip refigure query tests (half the runtime and more readable) consolidate jest tests under a single config Now you should be able to get meaningful results and IDE integration with simply "jest". Note that render tests are not included since they don't currently run under jest. wip remove extraneous X server fix and improve build tests style-spec fix style-spec build bump style-spec deps remove unnecessary dependency on node url package remove npm-plugin-playwright wip fix node version kick off eslint and stylelint via jest remove unused jest disable directives jest-runner-eslint ignore (grrr) use node lts fix config use jest builtin github action reporter revert eslint change Fail faster if gl package fails to return a context more wip more wip continue on error Update jest.config.ts Update test-all.yml Update jest.config.ts don't run eslint via jest update dependencies fix test script and remove test-unit-ci wip maybe fix test? i wonder if a 0-pixel framebuffer would work... maybe try filtering by path again wip refigure query tests (half the runtime and more readable) consolidate jest tests under a single config Now you should be able to get meaningful results and IDE integration with simply "jest". Note that render tests are not included since they don't currently run under jest. wip remove extraneous X server fix and improve build tests style-spec fix style-spec build bump style-spec deps remove unnecessary dependency on node url package remove npm-plugin-playwright wip fix node version kick off eslint and stylelint via jest remove unused jest disable directives jest-runner-eslint ignore (grrr) use node lts fix config use jest builtin github action reporter revert eslint change Fail faster if gl package fails to return a context more wip more wip continue on error Update jest.config.ts Update test-all.yml Update jest.config.ts don't run eslint via jest update dependencies fix test script and remove test-unit-ci wip maybe fix test? i wonder if a 0-pixel framebuffer would work... maybe try filtering by path again wip refigure query tests (half the runtime and more readable) revert changes to query tests wip: integration tests remove separate query test build step build dist before running integration tests with gl readmes add changelog reset unrelated changes
# Conflicts: # .github/workflows/build.yml
I think you should be able to run the tests generically, but dig into failures with specificity. I don't actually expect users to care about render vs non-render tests locally, since both should be able to run non-interactively on a local machine. Is this still an issue? |
So the generation of the rest data is done in the test, right? |
This looks good in general, we can always improve according to feedback. |
Yep. The test data is not so much “generated” as pulled together from a bunch of separate folders. I got rid of the extra step so now editing the test cases will show up in the test results without having to run that script! |
05ae23a
to
3d25395
Compare
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.
Thanks! If there are issues we can always change it in the future...
@rotu did this PR remove coverage from the CI? I don't see any coverage report in the CI in recent PRs... |
@HarelM I don't think we had any coverage reports before this PR. Could you link one of the coverage reports you're talking about? |
It was part of the CI, reported to the console. |
Now you should be able to get meaningful results by simply running
jest
. Ornpx majestic
if you’re fancy and want a GUI.Also, IDE integration with Jest plugins should work better, since now it is unambiguous which configuration applies to which test.
Note that render tests are not currently included since they don't currently run under Jest.
Finally, I consolidated a bunch of testing scripts so you don’t get a bajillion notifications for each push to a PR branch.