You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
By default TAP comments are used as test-suite names and considered to mark test boundaries. CLI flag --dontUseCommentsAsTestNames can be used to turn that feature off, in which case comments are ignored and
all assertions go inside a single <testsuite name="Default"> with name Default
Library
var converter = require('tap-xunit');
// Optional configuration
var opts = {}
var tapToxUnitConverter = converter(opts);
tapInputStream.pipe(tapToxUnitConverter).pipe(xUnitOutStream);
Options
Options can be passed as CLI arguments by being prefixed with --
dontUseCommentsAsTestNames
default: false
By default TAP comments are used as test-suite names and considered to mark test boundaries.
This option can be used to turn that feature off, in which case comments are ignored and
all assertions go inside a single <testsuite name="Default"> with name Default
replaceWithUnicodeDot
default: false
Whether the '.' in test-suite names should be replaced with a Unicode homoglyph.
This feature exists because many xUnit reporters assume '.' in test-suite name implies package hierarchy, which may not be the case.
package
default: ''
If specified, all test-suites will be prefixed with the given package name.
NOTE: replaceWithUnicodeDot option does not apply to package and . can be used to specify package hierarchy.