mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-05 19:20:12 +08:00
feat: add cypress test script
This commit is contained in:
1 parent
a5526d2dcf
commit
af672791a5
2 files changed
+17
-2
No files matched your search
@@ -32,10 +32,14 @@ Run Cypress locally, using the current development containers:
|
|||||||
|
|
||||||
Run Cypress in container, create brand-new containers along with it:
|
Run Cypress in container, create brand-new containers along with it:
|
||||||
|
|
||||||
docker compose -f docker-compose.testing.yml run cypress
|
./docker-scripts.sh test
|
||||||
|
|
||||||
|
# or with building
|
||||||
|
|
||||||
|
./docker-scripts.sh test --build
|
||||||
|
|
||||||
# tearing off the containers
|
# tearing off the containers
|
||||||
docker compose -f docker-compose.testing.yml down
|
./docker-scripts.sh down
|
||||||
|
|
||||||
### Deployment
|
### Deployment
|
||||||
|
|
||||||
|
|||||||
@@ -18,4 +18,15 @@ clean() {
|
|||||||
docker rm -f $containers
|
docker rm -f $containers
|
||||||
}
|
}
|
||||||
|
|
||||||
|
test() {
|
||||||
|
if [ "$1" = "--build"]; then
|
||||||
|
docker compose -f docker-compose.testing.yml build
|
||||||
|
fi
|
||||||
|
docker compose -f docker-compose.testing.yml run --rm cypress
|
||||||
|
}
|
||||||
|
|
||||||
|
down() {
|
||||||
|
docker compose -f docker-compose.testing.yml down
|
||||||
|
}
|
||||||
|
|
||||||
$@
|
$@
|
||||||
Reference in new issue
Block a user