File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -21,5 +21,9 @@ scripts/auto-prepend/.logs
21
21
scripts /auto-prepend /.cache
22
22
scripts /** /* .log
23
23
24
+ # Public scripts
25
+ scripts /public /cache-actions.php
26
+ scripts /public /geolocation-test.php
27
+
24
28
# MaxMind databases
25
29
* .mmdb
Original file line number Diff line number Diff line change @@ -253,6 +253,14 @@ https://phpXX.ddev.site/my-own-modules/crowdsec-php-lib/scripts/public/protected
253
253
254
254
In auto-prepend mode, you can run some end-to-end tests.
255
255
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
+
256
264
We are using a Jest/Playwright Node.js stack to launch a suite of end-to-end tests.
257
265
258
266
Tests code is in the ` tests/end-to-end ` folder. You should have to ` chmod +x ` the scripts you will find in
You can’t perform that action at this time.
0 commit comments