feat: add cypress test script

This commit is contained in:
wancat authored and Annie Huang committed 2023-11-12 21:23:12 +08:00
1 parent a953d21c97
commit 3af560bf7a
2 files changed
+17 -2

No files matched your search

+11
View File
@@ -18,4 +18,15 @@ clean() {
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
}
$@