forked from adobecom/nala
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add script to run screenshot tests together (adobecom#433)
- Loading branch information
Showing
1 changed file
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}!" |