Skip to content

Commit 89640ab

Browse files
docs(end-to-end): Update end-to-end testing doc
1 parent a221c27 commit 89640ab

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,9 @@ scripts/auto-prepend/.logs
2121
scripts/auto-prepend/.cache
2222
scripts/**/*.log
2323

24+
# Public scripts
25+
scripts/public/cache-actions.php
26+
scripts/public/geolocation-test.php
27+
2428
# MaxMind databases
2529
*.mmdb

docs/DEVELOPER.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,14 @@ https://phpXX.ddev.site/my-own-modules/crowdsec-php-lib/scripts/public/protected
253253

254254
In auto-prepend mode, you can run some end-to-end tests.
255255

256+
Before running the tests, you have to copy some testing scripts:
257+
258+
```
259+
cd php-project-sources
260+
cp .ddev/custom_files/crowdsec/cache-actions.php my-own-modules/crowdsec-php-lib/scripts/public/cache-actions.php
261+
cp .ddev/custom_files/crowdsec/geolocation-test.php my-own-modules/crowdsec-php-lib/scripts/public/geolocation-test.php
262+
```
263+
256264
We are using a Jest/Playwright Node.js stack to launch a suite of end-to-end tests.
257265

258266
Tests code is in the `tests/end-to-end` folder. You should have to `chmod +x` the scripts you will find in

0 commit comments

Comments
 (0)