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 unit-testing support for specific packages #7128

Merged
merged 1 commit into from
Jan 6, 2021

Conversation

bigtimebuddy
Copy link
Member

Fixes #6925

This was something I've been meaning to add for awhile and @GoodBoyDigital inspired it here #7096. This makes it much easier to unit-test a specific package from the command-line and without using Mocha's .only() API. Here are some examples:

Single package

npm run unit-test -- --package=@pixi/math

Multiple packages

npm run unit-test -- --package=@pixi/math --package=@pixi/core

With Debug Tools

npm run unit-test:debug -- --package=@pixi/math

Copy link
Member

@GoodBoyDigital GoodBoyDigital left a comment

Choose a reason for hiding this comment

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

awesome! 👍

@bigtimebuddy bigtimebuddy requested a review from Zyie January 6, 2021 17:25
@bigtimebuddy bigtimebuddy added the ✅ Ready To Merge Helpful when issues are in the queue waiting to get merged. This means the PR is completed and has t label Jan 6, 2021
@bigtimebuddy bigtimebuddy merged commit 45d32e4 into dev Jan 6, 2021
@bigtimebuddy bigtimebuddy deleted the feature/unit-test-workflow branch January 6, 2021 22:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✅ Ready To Merge Helpful when issues are in the queue waiting to get merged. This means the PR is completed and has t
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Contributing: Unclear how to run a single test
3 participants