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

Document how to use wp-env to run tests #1776

Merged
merged 7 commits into from
Jan 24, 2024

Conversation

psrpinto
Copy link
Contributor

@psrpinto psrpinto commented Jan 23, 2024

Problem

In #1760, we introduced two npm run commands to run tests in wp-env: env:test and env:tests-cmd. Those commands are confusing and lack documentation.

Solution

This PR replaces both commands with a single env:phpunit command. Additionally, this PR adds documentation on how to run tests in wp-env, in CONTRIBUTING.md.

Rendered docs

Testing Instructions

Follow the instructions to run tests in wp-env and make sure tests pass.

@psrpinto psrpinto marked this pull request as ready for review January 23, 2024 18:16
Co-authored-by: Jesús Amieiro Becerra <[email protected]>
@psrpinto psrpinto requested a review from amieiro January 24, 2024 11:40
@amieiro amieiro merged commit 7b3ede4 into GlotPress:develop Jan 24, 2024
@psrpinto psrpinto deleted the wp-env-tests-docs branch January 24, 2024 15:45
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