Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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
- });
Add Comment
Please, Sign In to add comment