Tap Out

RESOURCES

DESCRIPTION

Tap Out is a TAP handler. Tap Out supports TAP-Y/J as well as traditional TAP.

TAP-Y/J is an innovation of KO and Tap Out. It is a modernization of TAP using pure YAML/JSON streams.

Traditional TAP has less detail than TAP-Y/J, but it can still be translated with fairly good results. Tap Out includes a TAP adapter to handle the translation transparently. Current Tap Out support TAP v12 with minor limitations.

Tap Out fully supports TAP-Y at this time. TAP-J support is still in development.

To learn about the TAP-Y/J specification, see the TAP-YJ.rdoc file.

For information about TAP, see testanything.org/wiki/index.php/Main_Page.

SYNOPSIS

Using a test framework that produces a TAP-Y output stream, simply pipe the stream into ‘tapout`.

$ ko -y -Ilib test/foo.rb | tapout

Tap Out supports a variety of output formats. These are selectable via the ‘-f` option.

$ ko -y -Ilib test/foo.rb | tapout -f progessbar

Tap Out is smart enough to match the closest matching format name. So, for example, the above could be written as:

$ ko -y -Ilib test/foo.rb | tapout -f pro

And tapout will know to use the ‘progressbar` format.

To see a list of supported formats use the list subcommand:

$ tapout list

If your test framework does not support TAP-Y, but does support traditional TAP, Tap Out will automatically recognize the difference by TAP’s ‘1..N` header.

$ ko -t -Ilib test/foo.rb | tapout -f progressbar

Tap Out, Copyright © 2010 Thomas Sawyer

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this program except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.