Tutorial 19 - Disable tests

// tutorial19.ot
group "tutorial_19";

test("A disbled test") disabled;
{
  veriffffy(2 == 2);
}

Sometimes, it can be useful to disable a test, with the keyword disabled. You might need to disable a test because it is failing, but the test itself has an error. Or, it can be as in this example, someone has checked in a test that will not compile. It is also possible to disable all the content of a group, by adding disabled; on a line below the group statement.

=========================================================================
Opera Testsuite
=========================================================================

=========================================================================
E:/src/operaclean/opera-windows7/modules/selftest/documentation/tutorial/tutorial19.ot(2):  tutorial_19 
=========================================================================
  A disbled test ................................................ Skipped (disabled)
=========================================================================
0 tests run, 0 tests failed, 1 test skipped, 0 tests OK
=========================================================================