Skip to content
This repository has been archived by the owner on Oct 30, 2018. It is now read-only.

Commit

Permalink
regression: better distinction of "app" and "mojit" tests when runnin…
Browse files Browse the repository at this point in the history
…g instrumented (coverage) code

git-svn-id: svn+ssh://svn.corp.yahoo.com/yahoo/mobile/cocktails/mojito/open_mojito/trunk@14715 78714c76-eb2c-11df-99c6-07f6447728e4
  • Loading branch information
folta authored and Isao Yagi committed May 11, 2012
1 parent 2702e68 commit f2fde35
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion source/lib/management/commands/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -770,10 +770,14 @@ runTests = function(opts) {
};

if (coverage) {
if (testType === 'app' || testType === 'mojit') {
if (testType === 'mojit') {
instrumentDirectory(path, verbose, testType, function() {
testRunner(pathlib.join(mojitoInstrumentedDir, 'lib'));
});
} else if (testType === 'app') {
instrumentDirectory(path, verbose, testType, function() {
testRunner(mojitoInstrumentedDir);
});
} else {
instrumentDirectory(targetMojitoPath, verbose, testType,
function() {
Expand Down

0 comments on commit f2fde35

Please sign in to comment.