Skip to content

TAP Results

Purpose

Rapise supports the Test Anything Protocol (TAP). TAP specifies communication between unit tests and testing frameworks, such as Visual Studio MS-Test or NUnit.

Usage

The results of a Rapise test are saved to a TAP file in the same directory as the test. Tap files have a .tap extension.

TAP’s general format is:

1
2
3
4
5
6
7
1..N
ok 1 Description # Directive
# Diagnostic
....
ok 47 Description
ok 48 Description
more tests....

For example, a test file’s output might look like:

1
2
3
4
5
1..4
ok 1 - Input file opened
not ok 2 - First line of the input valid
ok 3 - Read the rest of the file
not ok 4 - Summarized correctly # TODO Not written yet

Example

An example Rapise .TAP file looks like the following:

1
2
3
4
5
6
# Simple IE Popup Example
# Starting scenario: Test
ok 1 - Open popup.DoClick([])
ok 2 - Click me.DoClick([])
ok 3 - Close me.DoClick([])
ok 4 - Simple IE Popup Example

See Also