Constructor and Description |
---|
Tap13Parser()
Parser Constructor.
|
Tap13Parser(boolean enableSubtests)
Parser Constructor.
|
Tap13Parser(String encoding,
boolean enableSubtests)
Parser Constructor.
|
Tap13Parser(String encoding,
boolean enableSubtests,
boolean planRequired)
Parser Constructor.
|
Tap13Parser(String encoding,
boolean enableSubtests,
boolean planRequired,
boolean removeYamlIfCorrupted)
Parser Constructor.
|
Modifier and Type | Method and Description |
---|---|
TestSet |
parseFile(File tapFile)
Parses a TAP File.
|
void |
parseLine(String tapLineOrig)
Parse a TAP line.
|
TestSet |
parseTapStream(Readable tapStream)
Parses a TAP Stream.
|
TestSet |
parseTapStream(String tapStream)
Parses a TAP Stream.
|
public Tap13Parser(String encoding, boolean enableSubtests)
encoding
- Encoding. This will not matter when parsing sources that
are already decoded (e.g. String
or Readable
), but it
will be used in the parseFile(java.io.File)
method (whether or not it is the
right encoding for the File being parsed).enableSubtests
- Whether subtests are enabled or notpublic Tap13Parser(String encoding, boolean enableSubtests, boolean planRequired)
encoding
- Encoding. This will not matter when parsing sources that
are already decoded (e.g. String
or Readable
), but it
will be used in the parseFile(java.io.File)
method (whether or not it is the
right encoding for the File being parsed).enableSubtests
- Whether subtests are enabled or notplanRequired
- flag that defines whether a plan is required or notpublic Tap13Parser(String encoding, boolean enableSubtests, boolean planRequired, boolean removeYamlIfCorrupted)
encoding
- Encoding. This will not matter when parsing sources that
are already decoded (e.g. String
or Readable
), but it
will be used in the parseFile(java.io.File)
method (whether or not it is the
right encoding for the File being parsed).enableSubtests
- Whether subtests are enabled or notplanRequired
- flag that defines whether a plan is required or notremoveYamlIfCorrupted
- flag that defines whether a corrupted YAML content will be removed without causing whole TAP processing failurepublic Tap13Parser(boolean enableSubtests)
parseFile(java.io.File)
method is encoded in UTF-8
.enableSubtests
- Whether subtests are enabled or notpublic Tap13Parser()
parseFile(java.io.File)
method is encoded in UTF-8
, and will not
recognize subtests.public TestSet parseTapStream(String tapStream)
parseTapStream
in interface Parser
tapStream
- TAP Streampublic TestSet parseFile(File tapFile)
tapFile
is
known to be written in that same encoding. Otherwise, the caller (which
probably knows best the file's encoding) can wrap the file in an
InputStreamReader
and pass that to
parseTapStream(Readable)
.public TestSet parseTapStream(Readable tapStream)
parseTapStream
in interface Parser
tapStream
- TAP Streampublic void parseLine(String tapLineOrig)
tapLineOrig
- TAP lineCopyright © 2010–2019 TupiLabs. All rights reserved.