Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

clean up code as there is no lib/tests to run for mojito src coverage

  • Loading branch information...
commit 96a817375c11cf925eb62535d1c85baf948027b8 1 parent 0bdde0f
lzhan authored November 29, 2012

Showing 1 changed file with 3 additions and 15 deletions. Show diff stats Hide diff stats

  1. 18  lib/app/commands/test.js
18  lib/app/commands/test.js
@@ -749,21 +749,9 @@ runTests = function(opts) {
749 749
     };
750 750
 
751 751
     if (coverage) {
752  
-        if (testType === 'mojit') {
753  
-            instrumentDirectory(path, verbose, testType, function() {
754  
-                testRunner(mojitoInstrumentedDir);
755  
-            });
756  
-        } else if (testType === 'app') {
757  
-            instrumentDirectory(path, verbose, testType, function() {
758  
-                testRunner(mojitoInstrumentedDir);
759  
-            });
760  
-        } else {
761  
-            instrumentDirectory(targetMojitoPath, verbose, testType,
762  
-                function() {
763  
-                    targetMojitoPath = mojitoInstrumentedDir;
764  
-                    testRunner(libpath.join(targetMojitoPath, 'lib/tests'));
765  
-                });
766  
-        }
  752
+        instrumentDirectory(path, verbose, testType, function() {
  753
+            testRunner(mojitoInstrumentedDir);
  754
+        });
767 755
     } else {
768 756
         testRunner(path);
769 757
     }

1 note on commit 96a8173

Isao Yagi

If you flatten the output dir, will existing consumers (SD, jenkins) find the app reports?

Please sign in to comment.
Something went wrong with that request. Please try again.