mk test script

pull/5370/head
bunsenstraat 3 years ago
parent 332d05c8af
commit 886e14690b
  1. 24
      apps/remix-ide-e2e/src/runtests.sh

@ -0,0 +1,24 @@
#!/bin/bash
# Bash Menu Script Example
PS3='Please enter your choice: '
TESTFILES=( $(grep -IRiL "disabled" "dist/apps/remix-ide-e2e/src/tests" | grep "\.spec\|\.test" | sort ) )
declare -p TESTFILES
TESTFILES+=("list")
TESTFILES+=("exit")
select opt in "${TESTFILES[@]}"
do
if [ "$opt" = "exit" ]; then
break
fi
if [ "$opt" = "list" ]; then
for i in "${!TESTFILES[@]}"; do
printf "%s) %s\n" "$((i+1))" "${TESTFILES[$i]}"
done
else
# run the selected test
npm run build:e2e && nightwatch --config dist/apps/remix-ide-e2e/nightwatch.js $opt --env=chromeDesktop
fi
done
Loading…
Cancel
Save