Skip to content

Commit 0a76c50

Browse files
committed
Document how to regenerate test data
Signed-off-by: Michal Čihař <michal@cihar.com>
1 parent 5114843 commit 0a76c50

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

CONTRIBUTING.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,15 @@ on every commit and pull request, you can also run it locally:
4040
```
4141
./vendor/bin/phpunit -c phpunit.xml
4242
```
43+
44+
The testsuite relies on fixtures of parser states, in case you need to
45+
regenerate some of these there are helper scripts in tools directory:
46+
47+
```
48+
# Remove file you want to regenerate
49+
rm tests/data/parser/parse.out
50+
51+
# Run the generator in the tools directory
52+
cd tools
53+
./run_generators.sh
54+
```

0 commit comments

Comments
 (0)