🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

harness

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

harness - npm Package Compare versions

Comparing version
0.0.5
to
0.0.6
+5
-2
harness.js

@@ -80,2 +80,5 @@ //

}
if (test.config === undefined) {
test.config = {};
}
test_groups.push(test);

@@ -114,3 +117,3 @@ };

console.log("\t\t" + group_test.label + " called");
group_test.callback(group_test.label);
group_test.callback(group_test.label, group_test.config);
}

@@ -166,3 +169,3 @@ } else if (group_test === undefined) {

console.log("\t\t" + group_test.label + " called");
group_test.callback(group_test.label);
group_test.callback(group_test.label, group_test.config);
}

@@ -169,0 +172,0 @@ } else if (group_test === undefined) {

{
"name" : "harness",
"version" : "0.0.5",
"version" : "0.0.6",
"description" : "Yet another test organizer except this one works in NodeJS, Mongo 2.2's shell and modern web browsers.",

@@ -5,0 +5,0 @@ "main" : "./harness.js",

@@ -116,7 +116,14 @@ //

harness.push({callback: function (test_label) {
assert.equal(harness.skipped(), 3,
"Should have one skipped test. " +
harness.skipped());
assert.equal(harness.skipped(), 3,
"Should have one skipped test. " +
harness.skipped());
harness.completed(test_label);
}, label: "SkipCount()"});
harness.push({callback: function (test_label, config) {
assert.ok(typeof config === "object", "Should have a config object.");
assert.equal(config.greets, "hello world", "Should have config.greets of 'hello world'");
harness.completed(test_label);
}, label: "SkipCount()"});
}, label: "Test passing a config.", config: {greets: "hello world"}});
harness.RunIt(test_name, 10);
var path = require("path"),
assert = require("assert"),
harness = require("../harness");
// This are tests targeted at the browser only
harness.push({callback: function (test_label) {
assert.ok(true, "Browser only");
harness.completed(test_label);
}, label: "BrowserOnly", targets: ["browser"]});
harness.push({callback: function (test_label) {
assert.ok(true, "Node only");
harness.completed(test_label);
}, label: "NodeOnly", targets: ["node"]});
harness.push({callback: function (test_label) {
assert.ok(true, "Mongo only");
harness.completed(test_label);
}, label: "MongoOnly", targets: ["mongo"]});
harness.push({callback: function (test_label) {
assert.ok(true, "Mongo only");
harness.completed(test_label);
}, label: "Combination", targets: ["node", "mongo", "browser"]});
harness.RunIt("Target Demo", 10);