forked from mrsimpson/Rocket.Chat
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Scripts for dedicated integrtion test execution (RocketChat#536)
* Scripts for dedicated integrtion test execution * Streamline message-popup-test and make it repetitive * Remove language dependency in tests * make searchChannel in tests more robust to caller's environment * Fix tests which were relying on previous scripts' state * Fix typo in shell scriptname * Scripts for dedicated integrtion test execution
- Loading branch information
Showing
8 changed files
with
55 additions
and
19 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,23 @@ | ||
#!/bin/bash | ||
tmpPath=tests/end-to-end/temporary_staged_test | ||
rm -rf $tmpPath | ||
mkdir -p $tmpPath | ||
[ -z "$RETRY_TESTS" ] && RETRY_TESTS=1 | ||
for file in tests/end-to-end/*/*.js; do | ||
failed=1 | ||
for i in `seq 1 $RETRY_TESTS`; do | ||
echo '-------------- '$i' try ---------------' | ||
set -x | ||
cp $file $tmpPath | ||
CHIMP_PATH=$tmpPath npm run chimp-path | ||
failed=$? | ||
set +x | ||
if [ $failed -eq 0 ]; then | ||
break | ||
fi | ||
done | ||
if [ $failed -ne 0 ]; then | ||
exit 1 | ||
fi | ||
rm $tmpPath/${file##*/} | ||
done |
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
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
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
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
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
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
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