Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Tests to verify duration of test execution, a strong indicator of (de…

…sired) parallelism.
  • Loading branch information...
commit 7db0872e3fe2cf9748bbdb1daea7a9cef7add4ea 1 parent d5ba8b2
@sam-falvo sam-falvo authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 test/run.sh
View
6 test/run.sh
@@ -2,11 +2,17 @@
CWD=`dirname $0`
CWD=`cd "$APP_DIR";pwd`
+START=$(date +%s)
"${CWD}/bin/whiskey" --independent-tests "${CWD}/example/test-long-running-1.js ${CWD}/example/test-long-running-2.js"
if [ $? -ne 0 ]; then
echo "long-running tests should pass"
exit 1
fi
+END=$(date +%s)
+DIFF=$(( $END - $START ))
+if [ $DIFF -ge 6 ]; then
+ echo "Total test execution time should be less than 6 seconds (assuming code hasn't been changed.)"
+fi
"${CWD}/bin/whiskey" --independent-tests "${CWD}/example/test-long-running-1.js ${CWD}/example/test-long-running-2.js ${CWD}/example/test-failure.js"
if [ $? -ne 2 ]; then
Please sign in to comment.
Something went wrong with that request. Please try again.