|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
org.intermine.task.AcceptanceTestTask
public class AcceptanceTestTask
A Task to run acceptance tests, configurable from a file.
| Field Summary | |
|---|---|
static java.lang.String |
TRAC_TICKET_URL_PREFIX
Prefix of the ticket pages in Trac. |
| Fields inherited from class org.apache.tools.ant.Task |
|---|
description, location, target, taskName, taskType, wrapper |
| Fields inherited from class org.apache.tools.ant.ProjectComponent |
|---|
project |
| Constructor Summary | |
|---|---|
AcceptanceTestTask()
|
|
| Method Summary | |
|---|---|
void |
execute()
|
static java.lang.String |
hyperLinkNote(java.lang.String note)
Return a hyperlinked version of the given note. |
protected void |
processResults(java.util.List<org.intermine.task.AcceptanceTestResult> testResults,
java.io.PrintWriter pw)
Write a formatted HTML summary of the given AcceptanceTestResult objects to the PrintWriter. |
static org.intermine.task.AcceptanceTest |
readOneTestConfig(java.io.LineNumberReader configReader)
Read and return one AcceptanceTest object from the given Reader. |
protected java.util.List<org.intermine.task.AcceptanceTestResult> |
runAllTests(Database db,
java.io.LineNumberReader configReader)
Run all the tests and return a List of AcceptanceTestResult objects. |
void |
setConfigFile(java.io.File configFile)
Set the File to read configuration from |
void |
setDatabase(java.lang.String database)
Set the database alias |
void |
setOutputFile(java.io.File outputFile)
Set the File to write output to |
| Methods inherited from class org.apache.tools.ant.Task |
|---|
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, reconfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType |
| Methods inherited from class org.apache.tools.ant.ProjectComponent |
|---|
getProject, setProject |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String TRAC_TICKET_URL_PREFIX
| Constructor Detail |
|---|
public AcceptanceTestTask()
| Method Detail |
|---|
public void setConfigFile(java.io.File configFile)
configFile - the config Filepublic void setOutputFile(java.io.File outputFile)
outputFile - the output filepublic void setDatabase(java.lang.String database)
database - the database aliaspublic void execute()
execute in class org.apache.tools.ant.Taskorg.apache.tools.ant.BuildException - if a problem occursTask.execute()
protected java.util.List<org.intermine.task.AcceptanceTestResult> runAllTests(Database db,
java.io.LineNumberReader configReader)
throws java.io.IOException,
java.sql.SQLException
db - the Database to run the queries againstconfigReader - the reader to get configuration information from.
java.sql.SQLException - if there is a problem running the SQL query
java.io.IOException - if there is a problem reading or parsing the config file
protected void processResults(java.util.List<org.intermine.task.AcceptanceTestResult> testResults,
java.io.PrintWriter pw)
testResults - a List of AcceptanceTestResult objectspw - the PrintWriterpublic static java.lang.String hyperLinkNote(java.lang.String note)
note - the note
public static org.intermine.task.AcceptanceTest readOneTestConfig(java.io.LineNumberReader configReader)
throws java.io.IOException
configReader - the reader to get configuration information from
java.io.IOException - if there is a problem reading or parsing the config file
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||