[Pkg-javascript-commits] [node-mocks-http] 111/296: removed jshint code from run-tests

Thorsten Alteholz alteholz at moszumanska.debian.org
Mon Feb 8 18:13:26 UTC 2016


This is an automated email from the git hooks/post-receive script.

alteholz pushed a commit to branch master
in repository node-mocks-http.

commit d8f25c5d9d9a8807e1ef428ac6762c89f0dabb80
Author: Johnny Estilles <johnny.estilles at agentia.asia>
Date:   Wed Mar 11 15:12:33 2015 +0800

    removed jshint code from run-tests
---
 run-tests | 53 ++++++++++++++++++++++++++++-------------------------
 1 file changed, 28 insertions(+), 25 deletions(-)

diff --git a/run-tests b/run-tests
index b7562c6..ebb81b9 100755
--- a/run-tests
+++ b/run-tests
@@ -5,32 +5,32 @@
 #      sudo npm install nodeunit
 #      sudo npm install jshint
 
-if type jshint >/dev/null 2>&1
-then
-    FILES="`find examples lib -name '*.js'`"
-    TMPHINT=/tmp/jshint-results
+# if type jshint >/dev/null 2>&1
+# then
+#     FILES="`find examples lib -name '*.js'`"
+#     TMPHINT=/tmp/jshint-results
 
-    for FILE in $FILES
-    do
-        echo "Analyzing: $FILE"
-        HIDDEN_EXP="`dirname $FILE`/.`basename $FILE`-exp"
-        jshint $FILE > $TMPHINT
-        if [ $? -gt 0 ]
-        then
-            if [ -f "$HIDDEN_EXP" ]
-            then
-                diff $TMPHINT "$HIDDEN_EXP"
-            else
-                cat $TMPHINT
-                echo
-                echo "Note: If this is an expected (and accepted) warning, then:"
-                echo "cp '$TMPHINT' '$HIDDEN_EXP'"
-                echo
-                exit 1
-            fi
-        fi
-    done
-fi
+#     for FILE in $FILES
+#     do
+#         echo "Analyzing: $FILE"
+#         HIDDEN_EXP="`dirname $FILE`/.`basename $FILE`-exp"
+#         jshint $FILE > $TMPHINT
+#         if [ $? -gt 0 ]
+#         then
+#             if [ -f "$HIDDEN_EXP" ]
+#             then
+#                 diff $TMPHINT "$HIDDEN_EXP"
+#             else
+#                 cat $TMPHINT
+#                 echo
+#                 echo "Note: If this is an expected (and accepted) warning, then:"
+#                 echo "cp '$TMPHINT' '$HIDDEN_EXP'"
+#                 echo
+#                 exit 1
+#             fi
+#         fi
+#     done
+# fi
 
 # Usage: nodeunit [options] testmodule1.js testfolder [...]
 # Options:
@@ -55,7 +55,10 @@ fi
 #   * tap: TAP output
 #   * verbose: Verbose tests reporter
 
+echo 
 echo "Executing tests..."
+echo
+
 # OPTS="--reporter junit --output test/results"
 
 FILES="`find test -name 'test-*.js'` `find examples -name '*.js'`"

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-mocks-http.git



More information about the Pkg-javascript-commits mailing list