21 lines
358 B
Bash
21 lines
358 B
Bash
#!/bin/bash
|
|
|
|
echo $2
|
|
if [ -z "$2" ]; then
|
|
TEST_DIRS=$(find 'test/cypress/integration' -mindepth 1 -maxdepth 1 -type d)
|
|
else
|
|
TEST_DIRS=$2
|
|
fi
|
|
|
|
echo $TEST_DIRS x$1
|
|
|
|
echo "$TEST_DIRS" | xargs -P "$1" -I {} sh -c '
|
|
echo "🔷 {}" &&
|
|
xvfb-run -a cypress run \
|
|
--headless \
|
|
--spec "{}" \
|
|
--quiet \
|
|
> /dev/null
|
|
'
|
|
wait
|