[Pkg-javascript-commits] [less.js] 35/38: exclude sync and integration tests if test name is specified

Jonas Smedegaard dr at jones.dk
Mon Oct 26 23:27:29 UTC 2015


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

js pushed a commit to annotated tag v2.2.0
in repository less.js.

commit 15fc1cb33243ff403a30ed115fd2501563e8f59e
Author: Luke Page <luke.a.page at gmail.com>
Date:   Sun Jan 4 08:45:57 2015 +0000

    exclude sync and integration tests if test name is specified
---
 test/less-test.js | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/test/less-test.js b/test/less-test.js
index f3919d9..93caf9b 100644
--- a/test/less-test.js
+++ b/test/less-test.js
@@ -125,7 +125,10 @@ module.exports = function() {
     }
 
     function testSyncronous(options, filenameNoExtension) {
-		totalTests++;
+	    if (oneTestOnly && ("Test Sync " + filenameNoExtension) !== oneTestOnly) {
+		    return;
+	    }
+	    totalTests++;
         queue(function() {
         var isSync = true;
         toCSS(options, path.join('test/less/', filenameNoExtension + ".less"), function (err, result) {
@@ -295,6 +298,9 @@ module.exports = function() {
     }
 
     function testNoOptions() {
+	    if (oneTestOnly && "Integration" !== oneTestOnly) {
+		    return;
+	    }
         totalTests++;
         try {
             process.stdout.write("- Integration - creating parser without options: ");

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/less.js.git



More information about the Pkg-javascript-commits mailing list