Skip to content

Commit

Permalink
Updated pr script to prompt for coverage/acceptance tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tkmcmaster committed Mar 28, 2024
1 parent c194ced commit 2fb39df
Showing 1 changed file with 27 additions and 9 deletions.
36 changes: 27 additions & 9 deletions pr.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ cargo clippy --all -- -D warnings
cargo test --all
cargo test --all --doc

cargo deny check --hide-inclusion-graph license sources advisories

CWD=$(pwd)

cd "$CWD/lib/config-wasm"
Expand Down Expand Up @@ -49,13 +51,29 @@ npm run build:common
npm run build:react
NODE_ENV=test npm test

# npm run testcleanup
# npm run coverage
# echo grab screenshot
read -e -p "Run Coverage Tests y/N: " choice
if [[ "$choice" == [Yy]* ]]; then
npm run testcleanup
# npm run coverage
# read -e -p "Grab screenshot then hit enter to continue." choice
npm run coverage:common
read -e -p "Grab common screenshot then hit enter to continue." choice
npm run coverage:controller
read -e -p "Grab controller screenshot then hit enter to continue." choice
npm run coverage:agent
read -e -p "Grab agent screenshot then hit enter to continue." choice
npm run testmerge
read -e -p "Grab overall screenshot then hit enter to continue." choice
fi

# npm run testcleanup
# echo Hit Ctrl-C when acceptance tests finish
# npm acceptance:all
# echo grab screenshot

cargo deny check --hide-inclusion-graph license sources advisories
read -e -p "Run Acceptance Tests y/N: " choice
if [[ "$choice" == [Yy]* ]]; then
while [[ "$clean_result" != "0" ]]; do
(npm run testcleanup)
clean_result=$?
echo "clean_result: $clean_result"
done
echo Hit Ctrl-C when acceptance tests finish
npm run acceptance:all
read -e -p "Grab screenshot then hit enter to continue." choice
fi

0 comments on commit 2fb39df

Please sign in to comment.