Skip to content

Commit 39c3334

Browse files
committed
run test over each wp version
1 parent 9c76718 commit 39c3334

File tree

12 files changed

+62
-14
lines changed

12 files changed

+62
-14
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@ vendor/
66

77
#Tools
88
node_modules/
9+
.test-results*
910

1011
# App
1112
.bouncer-key
1213
.cache/
13-
*.log
14+
*.log

docs/contribute.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,9 @@ docker-compose logs crowdsec
6262
./tests-local.sh # headless mode for speed up
6363

6464
DEBUG ./tests-local.sh
65+
66+
#All the version
67+
6568
```
6669

6770
> Note: you can add `await jestPlaywright.debug();` at the moment you want to pause the process.

tests-local-wp4.9.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/bash
2+
3+
WORDPRESS_VERSION=4.9 ./tests-local.sh
4+

tests-local-wp5.0.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/bash
2+
3+
WORDPRESS_VERSION=5.0 ./tests-local.sh
4+

tests-local-wp5.1.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/bash
2+
3+
WORDPRESS_VERSION=5.1 ./tests-local.sh
4+

tests-local-wp5.2.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/bash
2+
3+
WORDPRESS_VERSION=5.2 ./tests-local.sh
4+

tests-local-wp5.3.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/bash
2+
3+
WORDPRESS_VERSION=5.3 ./tests-local.sh
4+

tests-local-wp5.4.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/bash
2+
3+
WORDPRESS_VERSION=5.4 ./tests-local.sh

tests-local-wp5.5.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/bash
2+
3+
WORDPRESS_VERSION=5.5 ./tests-local.sh

tests-local.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
#!/bin/bash
22

3-
# Context
4-
WORDPRESS_VERSION=5.5
5-
63
# Default variables
74
WATCHER_LOGIN='watcherLogin'
85
WATCHER_PASSWORD='watcherPassword'
@@ -23,4 +20,7 @@ done
2320

2421

2522
# Run tests
26-
WORDPRESS_VERSION=$WORDPRESS_VERSION WATCHER_LOGIN=$WATCHER_LOGIN WATCHER_PASSWORD=$WATCHER_PASSWORD LAPI_URL_FROM_CONTAINERS='http://crowdsec:8080' LAPI_URL_FROM_HOST='http://localhost:8080' yarn --cwd ./tests/functional test --detectOpenHandles --runInBand
23+
WORDPRESS_VERSION=$WORDPRESS_VERSION WATCHER_LOGIN=$WATCHER_LOGIN WATCHER_PASSWORD=$WATCHER_PASSWORD \
24+
LAPI_URL_FROM_CONTAINERS='http://crowdsec:8080' LAPI_URL_FROM_HOST='http://localhost:8080' \
25+
yarn --cwd ./tests/functional test \
26+
--detectOpenHandles --runInBand --json --outputFile=.test-results-$WORDPRESS_VERSION.json

0 commit comments

Comments
 (0)