Java Doc for QuiltTask.java in  » Test-Coverage » Quilt » org » quilt » frontend » ant » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Test Coverage » Quilt » org.quilt.frontend.ant 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.quilt.frontend.ant.QuiltTask

QuiltTask
public class QuiltTask extends Task (Code)
Ant task for running Quilt and JUnit.

The Quilt Ant task is meant to be a plug-in replacement for the Ant JUnitTask. Whatever build.xml works with JUnitTask should behave identically with QuiltTask. The opposite is not true: using QuiltTask allows you to run coverage tests in addition to JUnit unit tests

Parameter names / build file options are compatible with the build.xml options for JUnitTask as of Ant 1.5.3-1, so that if <junit> and </junit> are replaced with <quilt> and </quilt> respectively in the build.xml file, test behavior should be the same.

Build file options either control the individual test and so are passed to Quilt and JUnit, or manage QuiltTask and the test process.

Most test options will go through Quilt to JUnit. All are set by Ant set* methods, where the name for the method setting the variable 'var' is 'setVar'. That is, the first letter of the variable name is capitalized, then the modified name is appended to 'set'.

Task control parameters are NOT passed through to Quilt or JUnit. These variables are modified by Ant add*, set*, and create* routines, where the names are determined as described above.

QuiltTest options can be set at three levels. First, then can be set as attributes to the <quilt&gr; element. In this case, they are the defaults for all tests.

Next, they can be set at the <batchtest> leve.. In this case, these attributes will be used for all files in the batch test.

Finally, they can be set at the <test> level, in which case they will override the defaults set higher up.

QuiltTask collects filesets from batch test elements and the names of individual tests. These are then passed to a Scheduler which unpacks the batch tests and schedules all tests for running.

It may be important to understand that under certain circumstances batches of tests will be run more than once result. This will normally be the result of an error in the way that dependencies are structured in build.xml.


See Also:   QuiltTest
See Also:   Scheduler
See Also:   TaskControl



Constructor Summary
public  QuiltTask()
    

Method Summary
protected  voidaddClasspathEntry(String resource)
    
public  voidaddEnv(Environment.Variable var)
    
public  voidaddFormatter(FmtSelector fe)
    
public  voidaddSysproperty(Environment.Variable sysp)
    
public  voidaddTest(QuiltTest qt)
    
public  BatchTestcreateBatchTest()
    
public  PathcreateClasspath()
    
public  Commandline.ArgumentcreateJvmarg()
    
public  voidexecute()
    
public  voidhandleTheErrorFlush(String line)
    
public  voidhandleTheErrorOutput(String line)
    
public  voidhandleTheFlush(String line)
    
public  voidhandleTheOutput(String line)
    
public  voidinit()
    
public  voidsetCheckCoverage(boolean b)
    
public  voidsetCheckExcludes(String s)
    
public  voidsetCheckIncludes(String s)
    
public  voidsetDir(File dir)
    
public  voidsetErrorProperty(String propertyName)
    
public  voidsetFailureProperty(String propertyName)
    
public  voidsetFiltertrace(boolean b)
    
public  voidsetFork(boolean b)
    
public  voidsetHaltOnError(boolean b)
    
public  voidsetHaltOnFailure(boolean b)
    
public  voidsetIncludeAntRuntime(boolean b)
    
public  voidsetJvm(String value)
    
public  voidsetMaxmemory(String max)
    
public  voidsetMockExec(boolean b)
    
public  voidsetMockTestRun(boolean b)
    
public  voidsetNewenvironment(boolean b)
    
public  voidsetPrintsummary(String sValue)
    
public  voidsetShowOutput(boolean b)
    
public  voidsetTimeout(Long t)
    


Constructor Detail
QuiltTask
public QuiltTask() throws Exception(Code)




Method Detail
addClasspathEntry
protected void addClasspathEntry(String resource)(Code)



addEnv
public void addEnv(Environment.Variable var)(Code)



addFormatter
public void addFormatter(FmtSelector fe)(Code)



addSysproperty
public void addSysproperty(Environment.Variable sysp)(Code)



addTest
public void addTest(QuiltTest qt)(Code)



createBatchTest
public BatchTest createBatchTest()(Code)



createClasspath
public Path createClasspath()(Code)



createJvmarg
public Commandline.Argument createJvmarg()(Code)



execute
public void execute() throws BuildException(Code)



handleTheErrorFlush
public void handleTheErrorFlush(String line)(Code)



handleTheErrorOutput
public void handleTheErrorOutput(String line)(Code)



handleTheFlush
public void handleTheFlush(String line)(Code)



handleTheOutput
public void handleTheOutput(String line)(Code)



init
public void init()(Code)



setCheckCoverage
public void setCheckCoverage(boolean b)(Code)



setCheckExcludes
public void setCheckExcludes(String s)(Code)



setCheckIncludes
public void setCheckIncludes(String s)(Code)



setDir
public void setDir(File dir)(Code)



setErrorProperty
public void setErrorProperty(String propertyName)(Code)



setFailureProperty
public void setFailureProperty(String propertyName)(Code)



setFiltertrace
public void setFiltertrace(boolean b)(Code)



setFork
public void setFork(boolean b)(Code)



setHaltOnError
public void setHaltOnError(boolean b)(Code)



setHaltOnFailure
public void setHaltOnFailure(boolean b)(Code)



setIncludeAntRuntime
public void setIncludeAntRuntime(boolean b)(Code)



setJvm
public void setJvm(String value)(Code)



setMaxmemory
public void setMaxmemory(String max)(Code)



setMockExec
public void setMockExec(boolean b)(Code)



setMockTestRun
public void setMockTestRun(boolean b)(Code)



setNewenvironment
public void setNewenvironment(boolean b)(Code)



setPrintsummary
public void setPrintsummary(String sValue)(Code)



setShowOutput
public void setShowOutput(boolean b)(Code)



setTimeout
public void setTimeout(Long t)(Code)



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.