Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

include the necessary jar files, and fix test for "-tests" modules #723

Merged
merged 1 commit into from

2 participants

@drewfish
Owner

No description provided.

@caridy
Owner

+1

@drewfish drewfish merged commit fa381d5 into yahoo:develop-perf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 5 additions and 3 deletions.
  1. +1 −0  .npmignore
  2. +4 −3 lib/app/commands/test.js
View
1  .npmignore
@@ -5,6 +5,7 @@
*.bak
*~
/tests
+!/tests/harness/lib/yuitest/java/build
arrowreport
artifacts
examples
View
7 lib/app/commands/test.js
@@ -37,6 +37,8 @@ var libpath = require('path'),
Store = require(libpath.join(__dirname, '../../store')),
+ RX_TESTS = /-tests$/,
+
YUI = require('yui').YUI,
YUITest = require('yuitest').YUITest,
TestRunner = YUITest.TestRunner,
@@ -706,8 +708,7 @@ runTests = function(opts) {
}
}
- } else if (name.indexOf('-tests') ===
- name.length - '-tests'.length) {
+ } else if (RX_TESTS.test(name)) {
testModuleNames.push(name);
}
});
@@ -727,7 +728,7 @@ runTests = function(opts) {
// execute each test within new sandbox
testModuleNames.forEach(function(name) {
// only run tests, and not the frame mojit tests
- if (/-tests$/.test(name) && name !== 'HTMLFrameMojit-tests') {
+ if (RX_TESTS.test(name) && name !== 'HTMLFrameMojit-tests') {
testQueue.push(name);
}
});
Something went wrong with that request. Please try again.