sbITestHarness Interface Reference

An interface for launching unit tests from XULRunner apps. More...

import"sbITestHarness.idl";

Inheritance diagram for sbITestHarness:
[legend]
Collaboration diagram for sbITestHarness:
[legend]

Public Member Functions

void init (in AString aComponentList)
 Initialize the Test Harness object. More...
 
void run ()
 Run the tests. More...
 
void logFailure (in AString aComponentName)
 Called by the test harness code when a test fails. More...
 

Detailed Description

An interface for launching unit tests from XULRunner apps.

Definition at line 40 of file sbITestHarness.idl.

Member Function Documentation

void sbITestHarness::init ( in AString  aComponentList)

Initialize the Test Harness object.

Set the location or file to run the tests on. The testharness expects to recieve a string containing a comma seperated list of subdirectories within the testharness directory to test.

Parameters
aPathA comma seperated list of components to test. If this variable is null, all tests will be run.
void sbITestHarness::logFailure ( in AString  aComponentName)

Called by the test harness code when a test fails.

This allows all tests to run and the the testharness to return failure when complete.

void sbITestHarness::run ( )

Run the tests.


The documentation for this interface was generated from the following file: