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

chore: split test:unit into different parts #2693

Merged
merged 2 commits into from
Dec 16, 2020
Merged

chore: split test:unit into different parts #2693

merged 2 commits into from
Dec 16, 2020

Conversation

straker
Copy link
Contributor

@straker straker commented Dec 15, 2020

This is just a minor quality of life change that helps make running test:unit a little bit nicer. Right now it runs all tests in a single run, but won't fail early if something in commons fails. This changes it so each directory is run individually so it will exit early if something fails.

Not only that, but trying to debug the tests was a bit rough as running all the tests in the browser was slow, especially in IE11 where #2682 was failing but I couldn't reproduce it locally when running that specific test, but could not get all the tests to run properly in the browser. Splitting the tests out should help with debugging.

Lastly, the test:debug script just makes it easier to run karma in debug rather than remembering the commands. You can still pass -- testDirs to it so you can debug individual test dirs as well.

@straker straker requested a review from a team as a code owner December 15, 2020 23:28
Copy link
Contributor

@WilcoFiers WilcoFiers left a comment

Choose a reason for hiding this comment

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

Can you update the contribute docs to explain how to use these commands?

Copy link
Contributor

@WilcoFiers WilcoFiers left a comment

Choose a reason for hiding this comment

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

Approved, assuming docs follow shortly

@straker straker merged commit a089353 into develop Dec 16, 2020
@straker straker deleted the split-tests branch December 16, 2020 15:59
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.

2 participants