Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixed some suite/test level issues

  • Loading branch information...
commit 868a98f7d12d714d1c965597f40c58dbdf48ea08 1 parent 030dcac
@tmpvar authored
Showing with 4 additions and 8 deletions.
  1. +4 −8 lib/runner.js
View
12 lib/runner.js
@@ -26,15 +26,11 @@ exports.run = function(testSuites) {
}
}
-
var errors = [];
var total = 0;
var runTest = function(suiteName, suite, test) {
total++;
- GLOBAL.builder.contentType = suite.contentType;
- GLOBAL.builder.type = suite.type;
- GLOBAL.builder.testDirectory = suiteName;
try {
suite.cases[test].call(GLOBAL);
@@ -57,16 +53,16 @@ exports.run = function(testSuites) {
}
if (args.suite) {
- if (tests[args.suite]) {
+ if (testSuites[args.suite]) {
if (args.test) {
- runTest(args.suite, tests[args.suite], args.test);
+ runTest(args.suite, testSuites[args.suite], args.test);
} else {
runSuite(args.suite);
}
} else {
sys.puts("Invalid Suite Name\n\n Existing suites:")
- for (var suiteName in tests) {
- if (tests.hasOwnProperty(suiteName)) {
+ for (var suiteName in testSuites) {
+ if (testSuites.hasOwnProperty(suiteName)) {
sys.puts(" " + suiteName);
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.