salix-front/test/cypress/cypressParallel.sh

18 lines
309 B
Bash

#!/bin/bash
find 'test/cypress/integration' \
-mindepth 1 \
-maxdepth 1 \
-type d | \
xargs -P "$1" -I {} \
sh -c '''
echo "🔷 {}" &&
xvfb-run -a cypress run \
--headless \
--browser chromium \
--spec "{}" \
--quiet \
> /dev/null 2>&1
'''
wait