scriptests (version 1.0-16)

compareTranscriptAndOutput: Compare desired and actual output from running transcript-style tests.

Description

Compare desired and actual output from running transcript-style tests. This function is called by the scripts supplied with the EasyTests package.

Usage

compareTranscriptAndOutput(name, tests, results, verbose = TRUE)

Arguments

name
Name of the file of tests.
tests
A list of test blocks, as generated by parseTranscriptFile
results
A list of test blocks, as generated by parseTranscriptFile
verbose
A logical flag indicating whether to write progress reports to stdout.

Value

Returns an object of class RtTestSetResults, for which there are summary and print methods.

Details

Compares tests line-by-line, with some control over how matching is done and what mismatches counts as errors, warnings, or informational events.