Skip to content

Instantly share code, notes, and snippets.

@deepthawtz
Created November 12, 2010 00:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save deepthawtz/673497 to your computer and use it in GitHub Desktop.
Save deepthawtz/673497 to your computer and use it in GitHub Desktop.
var YUI = require("yui3").YUI
, otherSuite = require("./other_suite")
;
YUI({logInclude:{TestRunner:true}}).use("test", function(Y) {
var suite = new Y.Test.Suite("Server Test Suite");
var test_nothing = new Y.Test.Case({
name: "Testing nothing",
"testing nothing special": function() {
Y.Assert.areEqual(5,5);
}
});
suite.add(test_nothing)
Y.Test.Runner.add(suite);
//Y.Test.Runner.add(otherSuite);
//Y.Test.Runner.run(); // works totally fine
var tap = Y.Test.Runner.getResult(Y.Test.Format.TAP);
console.log(tap); // nothing
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment