|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object sofya.apps.DejaVu
public class DejaVu
DejaVu is a regression test selection tool for Java, implemented as part of the Sofya toolset.
Usage:
java sofya.apps.DejaVu <prog1> <prog2> <thist>
-t [slt] -tag1 <tag1> -tag2 <tag2>
<prog1>: prog file for version one
of the program
<prog2>: prog file for version two
of the program
<thist>: full path to test
history file.
-t <[s]tatistical | [l]ist | [t]abular>:
output format
-tag1: Database tag for version one of
the program
-tag2: Database tag for version two of
the program
The first three parameters must be in the order shown. The order of the remaining parameters is not important.
Constructor Summary | |
---|---|
DejaVu()
Standard constructor for DejaVu. |
|
DejaVu(boolean saveDangerousEdges)
Constructs an instance of DejaVu, specifying whether it should generate an output file containing the dangerous edges selected by the graph traverser. |
Method Summary | |
---|---|
static void |
main(java.lang.String[] argv)
Entry point for DejaVu. |
void |
print(int format)
Stores the selected test information in the database directory as '/<tag2>/output-<tag1>-<tag2>.dejavu', and displays the results on screen in the specified format. |
static void |
printUsage()
Prints the usage message for DejaVu and exits. |
void |
selectTests(java.lang.String file1,
java.lang.String file2,
java.lang.String thist,
java.lang.String oldTag,
java.lang.String newTag)
Selects the tests which traverse changes between the two versions of the subject program. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DejaVu()
public DejaVu(boolean saveDangerousEdges)
saveDangerousEdges
- Flag specifying whether the dangerous edges
should be saved to an output file.Method Detail |
---|
public void selectTests(java.lang.String file1, java.lang.String file2, java.lang.String thist, java.lang.String oldTag, java.lang.String newTag) throws java.io.FileNotFoundException, BadFileFormatException, MethodNotFoundException, java.io.IOException
The following preconditions must be true:
file1
- Name of the prog file for the first version of the programfile2
- Name of the prog file for the second version of the programthist
- Path to the test history file, which may be either absolute
or relative to current directory.oldTag
- Database tag for the first version of the program.newTag
- Database tag for the second version of the program.
java.io.FileNotFoundException
- If an input file cannot be found.
BadFileFormatException
- If an input file is corrupted.
MethodNotFoundException
- If some input files reference different
classes than others, or are otherwise inconsistent in some manner that
prevents method data from being properly correlated.
java.io.IOException
- For any other type of IO error that prevents
successful reading of any input file.public void print(int format) throws java.io.IOException
Note: You must first call
selectTests(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)
.
format
- Specifies the format of the output to be displayed
to the console. The following values are acceptable:
database file is an empty string.
java.io.IOException
- For any IO error that prevents successful
writing of the database file or display of the test selection
results.public static void printUsage()
public static void main(java.lang.String[] argv)
argv
- Command-line arguments.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |