Skip to content

Commit f640750

Browse files
CopilotJJJ
andcommitted
Remove README-upload-tests.md and merge content into TESTING.md
Removed the standalone test documentation file and integrated relevant test group examples into the main TESTING.md file Co-authored-by: JJJ <88951+JJJ@users.noreply.github.com>
1 parent 9b388df commit f640750

File tree

2 files changed

+48
-111
lines changed

2 files changed

+48
-111
lines changed

TESTING.md

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,54 @@ bash bin/install-wp-tests.sh wordpress_test wp wp localhost $WP_VERSION
111111
./vendor/bin/phpunit
112112
```
113113

114+
### Running Specific Test Groups
115+
116+
Tests are organized using PHPUnit groups for easy filtering:
117+
118+
**Run all upload path tests:**
119+
120+
```bash
121+
./vendor/bin/phpunit --group=upload
122+
```
123+
124+
**Run tests by ticket number:**
125+
126+
```bash
127+
./vendor/bin/phpunit --group=136
128+
```
129+
130+
**Run specific test groups:**
131+
132+
```bash
133+
# Files rewriting tests
134+
./vendor/bin/phpunit --group=files-rewriting
135+
136+
# Multisite configuration tests
137+
./vendor/bin/phpunit --group=multisite
138+
139+
# Subdirectory installation tests
140+
./vendor/bin/phpunit --group=subdirectory
141+
```
142+
143+
**Run a single test class:**
144+
145+
```bash
146+
./vendor/bin/phpunit tests/integration/tests/test-upload-paths.php
147+
```
148+
149+
**Run a specific test method:**
150+
151+
```bash
152+
./vendor/bin/phpunit --filter test_upload_path_without_duplication
153+
```
154+
155+
**Verbose and debug output:**
156+
157+
```bash
158+
./vendor/bin/phpunit --group=upload --verbose
159+
./vendor/bin/phpunit --group=upload --debug
160+
```
161+
114162
### Testing with Docker
115163

116164
You can test different PHP versions using Docker:

tests/integration/tests/README-upload-tests.md

Lines changed: 0 additions & 111 deletions
This file was deleted.

0 commit comments

Comments
 (0)