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

allow running JS tests for a single plugin in tests:run-js #20816

Merged
merged 1 commit into from Jun 6, 2023

Conversation

diosmosis
Copy link
Member

Description:

Adds a --plugin=$pluginName option to tests:run-js. This is to fix the JS tests in a premium plugin.

Review

@diosmosis diosmosis added the Needs Review PRs that need a code review label Jun 1, 2023
@diosmosis diosmosis modified the milestone: 5.0.0 Jun 1, 2023
@diosmosis
Copy link
Member Author

@matomo-org/core-reviewers can someone take a look at this PR?

@michalkleiner
Copy link
Contributor

The changes look ok, left one suggestion. Not sure I see how adding the option to run tests for a single plugin instead of all of them fixes an issue for a plugin. Do the tests fail there if run as part of the overall set and not when run in isolation? That could be an indication of a hidden problem somewhere else.

@bx80
Copy link
Contributor

bx80 commented Jun 2, 2023

It's useful to be able to run the tests for just one plugin when debugging an issue locally, I think the idea here is to help with fixing the tests in a premium plugin by not having to run all the tests each time 🙂

@michalkleiner
Copy link
Contributor

Yep, definitely in support of the change, just wasn't 100% sure on the PR description.

Copy link
Contributor

@michalkleiner michalkleiner left a comment

Choose a reason for hiding this comment

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

Looks ok to me but I won't merge it yet so @sgiehl and @bx80 can have a look as well.

@sgiehl sgiehl merged commit 00215b0 into 5.x-dev Jun 6, 2023
16 of 19 checks passed
@sgiehl sgiehl deleted the tests-run-js-single-plugin branch June 6, 2023 11:30
@sgiehl sgiehl added this to the 5.0.0 milestone Jun 6, 2023
@sgiehl sgiehl added c: Tests & QA For issues related to automated tests or making it easier to QA & test issues. and removed Needs Review PRs that need a code review labels Jun 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c: Tests & QA For issues related to automated tests or making it easier to QA & test issues.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants