You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 1517659
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+12-4Lines changed: 12 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -40,23 +40,31 @@ The unit test files are in the `tests/` directory.
40
40
41
41
To run the unit tests, just execute:
42
42
43
-
./vendor/bin/phpunit
43
+
```bash
44
+
./vendor/bin/phpunit
45
+
```
44
46
45
47
### Functional tests
46
48
47
49
The functional test files are in the `features/` directory.
48
50
49
51
Before running the functional tests, you'll need a MySQL user called `wp_cli_test` with the password `password1` that has full privileges on the MySQL database `wp_cli_test`. Running the following as root in MySQL should do the trick:
50
52
51
-
GRANT ALL PRIVILEGES ON wp_cli_test.* TO "wp_cli_test"@"localhost" IDENTIFIED BY "password1";
53
+
```sql
54
+
GRANT ALL PRIVILEGES ON wp_cli_test.* TO "wp_cli_test"@"localhost" IDENTIFIED BY "password1";
55
+
```
52
56
53
57
Then, to run the entire test suite:
54
58
55
-
./vendor/bin/behat --expand
59
+
```bash
60
+
./vendor/bin/behat --expand
61
+
```
56
62
57
63
Or to test a single feature:
58
64
59
-
./vendor/bin/behat features/core.feature
65
+
```bash
66
+
./vendor/bin/behat features/core.feature
67
+
```
60
68
61
69
More info can be found by using `./vendor/bin/behat --help`.
0 commit comments