Skip to content

Commit 25de213

Browse files
authored
Document how to run part of the test suite (#1690)
1 parent f891a34 commit 25de213

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

CONTRIBUTING.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ $ php --ri mongodb
3131
## Generating arginfo from stub files
3232

3333
Arginfo structures are generated from stub files using the `gen_stub.php`
34-
file. Note that this requires `phpize` to be run for PHP 8.2 to make use
34+
file. Note that this requires `phpize` to be run for **PHP 8.2** to make use
3535
of all features. After changing a stub file, run `./build/gen_stub.php`
3636
to regenerate the corresponding arginfo files and commit the results.
3737

@@ -44,6 +44,15 @@ when using this extension. To generate the function map, run the
4444

4545
## Testing
4646

47+
The driver includes a test suite that can be run with `make test`. To run a single
48+
test file, define the `TESTS` variable with the file path:
49+
50+
```
51+
make test TESTS=tests/<path-to-test-file>.phpt
52+
```
53+
54+
### File format
55+
4756
The extension's test use the PHPT format from PHP internals. This format is
4857
documented in the following links:
4958

0 commit comments

Comments
 (0)