cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nikhi...@apache.org
Subject cordova-medic git commit: Add red color for name of testing failing.
Date Tue, 14 Jul 2015 00:39:44 GMT
Repository: cordova-medic
Updated Branches:
  refs/heads/master be7b7888e -> e9c23a130


Add red color for name of testing failing.


Project: http://git-wip-us.apache.org/repos/asf/cordova-medic/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-medic/commit/e9c23a13
Tree: http://git-wip-us.apache.org/repos/asf/cordova-medic/tree/e9c23a13
Diff: http://git-wip-us.apache.org/repos/asf/cordova-medic/diff/e9c23a13

Branch: refs/heads/master
Commit: e9c23a130265c0e13fb92db71e23d2e39aec4fc9
Parents: be7b788
Author: Nikhil Khandelwal <nikhilkh@microsoft.com>
Authored: Mon Jul 13 17:38:31 2015 -0700
Committer: Nikhil Khandelwal <nikhilkh@microsoft.com>
Committed: Mon Jul 13 17:39:20 2015 -0700

----------------------------------------------------------------------
 medic/medic-check.js | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-medic/blob/e9c23a13/medic/medic-check.js
----------------------------------------------------------------------
diff --git a/medic/medic-check.js b/medic/medic-check.js
index 72b7723..7c427a1 100644
--- a/medic/medic-check.js
+++ b/medic/medic-check.js
@@ -83,7 +83,10 @@ function main() {
                 testResults.mobilespec.results.forEach(function (result) {
 
                     if (result.status === "failed") {
-                        console.log(INDENT + result.fullName);
+                        var RED_COLOR = "\033[31m";
+                        var NO_COLOR  = "\033[m";
+
+                        console.log(INDENT + RED_COLOR + result.fullName + NO_COLOR);
 
                         // print all failed expectations
                         result.failedExpectations.forEach(function (expectation) {


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


Mime
View raw message