|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object sofya.tools.TestHistoryBuilder
public final class TestHistoryBuilder
The TestHistoryBuilder gathers coverage information from trace files
produced by the TraceHandler
attached
to a ProgramEventDispatcher
and uses it
to produce test history files for test subjects.
Usage:java sofya.tools.TestHistoryBuilder -<B|E|X|C>
[-tag <tag>] <tracedir> <histfile>
<classname|classlist_file>
Note: Arguments must be given in exactly the order shown, including optional arguments when used.
A class list file should be a simple text file ending with the extension ".prog" which contains a list of classes, one per line, including all package qualifications. If the fourth argument does not end in ".prog", it will be treated as a single class name.
TestHistory
,
TestHistoryHandler
,
TestHistoryViewer
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface sofya.base.SConstants |
---|
SConstants.BlockLabel, SConstants.BlockObjectType, SConstants.BlockSubType, SConstants.BlockType, SConstants.BranchObjectType, SConstants.BranchType, SConstants.EDObjectType, SConstants.TraceObjectType |
Field Summary |
---|
Fields inherited from interface sofya.base.SConstants |
---|
DEFAULT_PORT, INST_COMPATIBLE, INST_OLD_UNSUPPORTED, INST_OPT_NORMAL, INST_OPT_SEQUENCE, SIG_CHKALIVE, SIG_ECHO |
Constructor Summary | |
---|---|
TestHistoryBuilder(int typeFlags)
Creates a test history builder which prints its outputs to the standard streams ( System.out and System.err ). |
|
TestHistoryBuilder(int typeFlags,
java.lang.String tag)
Creates a test history builder which prints its outputs to the standard streams ( System.out and System.err ). |
|
TestHistoryBuilder(int typeFlags,
java.lang.String tag,
java.io.PrintStream stdout,
java.io.PrintStream stderr)
Creates a test history builder which prints its outputs to the specified streams. |
Method Summary | |
---|---|
boolean |
buildTestHistory(java.lang.String traceDir,
java.lang.String thFile,
java.util.List classList)
Builds test history information for a subject class from a set of traces and writes it to a file. |
static void |
main(java.lang.String[] argv)
Entry point for the test history builder. |
void |
setStderrStream(java.io.PrintStream stderr)
Sets the stream to which standard error outputs will be printed. |
void |
setStdoutStream(java.io.PrintStream stdout)
Sets the stream to which standard outputs will be printed. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TestHistoryBuilder(int typeFlags)
System.out
and System.err
).
typeFlags
- Bit mask representing the types of blocks to be
instrumented.public TestHistoryBuilder(int typeFlags, java.lang.String tag)
System.out
and System.err
).
typeFlags
- Bit mask representing the types of blocks to be
instrumented.public TestHistoryBuilder(int typeFlags, java.lang.String tag, java.io.PrintStream stdout, java.io.PrintStream stderr)
typeFlags
- Bit mask representing the types of blocks to be
instrumented.Method Detail |
---|
public void setStdoutStream(java.io.PrintStream stdout)
stdout
- Stream to which standard outputs will be printed.public void setStderrStream(java.io.PrintStream stderr)
stderr
- Stream to which error outputs will be printed.public boolean buildTestHistory(java.lang.String traceDir, java.lang.String thFile, java.util.List classList)
traceDir
- Path to the directory containing the traces from which
to gather test history information.thFile
- Name of the test history file to be created.classList
- List of the classes for which test history information
is being constructed.
true
if the test history file was successfully
written. If false
, the reason for failure will be printed
to the error stream.public static void main(java.lang.String[] argv)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |