Skip to content

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

Merged
amieiro merged 7 commits into
GlotPress:developfrom
psrpinto:wp-env-tests-docs
Jan 24, 2024
Merged

Document how to use wp-env to run tests#1776
amieiro merged 7 commits into
GlotPress:developfrom
psrpinto:wp-env-tests-docs

Conversation

@psrpinto

@psrpinto psrpinto commented Jan 23, 2024

Copy link
Copy Markdown
Contributor

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
Comment thread CONTRIBUTING.md Outdated
Co-authored-by: Jesús Amieiro Becerra <1667814+amieiro@users.noreply.github.com>
@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