Skip to content

Commit

Permalink
add script to run screenshot tests together (#433)
Browse files Browse the repository at this point in the history
  • Loading branch information
JackySun9 authored Sep 11, 2024
1 parent d4a1398 commit 0f58606
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions runScreenDiff.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/bin/bash

# Replace these variables with your actual values
Config="visual"
Project="chrome,ipad,iphone"

# Check if category is passed as an argument
if [ -z "$1" ]; then
echo "Usage: $0 <category>"
exit 1
fi

category="$1"

# Run each command one by one
node run.js -c ${Config} -p ${Project} -g @${category}-screenshots
node libs/screenshot/merge.js screenshots/${category}
node libs/screenshot/compare.mjs screenshots/${category}
node libs/screenshot/uploads3.js screenshots/${category}

echo "All commands executed successfully for category: ${category}!"

0 comments on commit 0f58606

Please sign in to comment.