Skipping Tests

Facts and Fixtures can be temporarily skipped by calling their ISkippable.Skip() method with an optional reason argument. var fact=new xUnit.js.Model.Fact(function(){/* TODO: Write Me. */}); fact.Skip("This behavior is not yet established. Should have designed it using tests."); var engine=new xUnit.js.Engine(); engine.RegisterFact(fact); engine.Run(); // Ignores the only registered test

Skipping tests can be useful when APIs are undergoing rapid or iterative change, but should be used sparingly, as skipped tests and the promises they make can easily fall out of sight, and out of mind.