Java Doc for JBlanketReportTask.java in  » Code-Analyzer » JBlanket » csdl » jblanket » 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 » Code Analyzer » JBlanket » csdl.jblanket.ant 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


csdl.jblanket.ant.JBlanketTask
   csdl.jblanket.ant.JBlanketReportTask

JBlanketReportTask
public class JBlanketReportTask extends JBlanketTask (Code)
Implements the JBlanket Apache Ant task definition that creates reports from the raw intermediate results collected from the JUnit test cases. This Ant task definition calls the JBlanketReport class to create the HTML pages that reflect the coverage of a system. The format of the HTML pages are similar to those of JUnitReport in Ant. All files are stored in the directory specified by the jblanket.dir system property. If it is not set, the default directory is <user_home>/<user_account>/jblanket.

Required nested element for the report task:

    None.

Optional nested element for the report task:

    'sysproperty' - describes additional system properties not set in the environment. If jblanket.dir is not set as an environment variable, include this nested element to set it. For example: see Ant

Required attributes for the report task:

    None.

Optional attributes for the report task:

    'enable' - describes if a report should be created. Valid values include "true", "on", "yes" to create a report or "false", "off", or "no" to not create a report.
    For example: enable="true"

    'verbose' - describes if additional output should be sent to standard out. Valid values include "true", "on", "yes" for additional output or "false", "off", or "no" for no additional output.
    For example: verbose="false"

    'reportformat' - format of the HTML report, either 'frames' or 'noframes'
    For example: reportformat="frames"

    'toDir' - directory where all HTML files should be sent
    For example: toDir="jblanket/html"

    'excludeonelinemethods' - describes if methods with one line of code were excluded from coverage. Values include "true", "on", "yes" when one-line methods were excluded or "false", "off", or "no" when one-line methods were included.
    For example: excludeonelinemethods="false"

    'excludeconstructors' - describes if constructors were excluded from coverage. Values include "true", "on", "yes" when constructors were excluded or "false", "off", or "no" when constructors were included.
    For example: excludeconstructors="false"

    'excludeindividualmethods' - describes if individual methods were excluded from coverage. Values include "true", "on", "yes" when individual methods were excluded or "false", "off", or "no" when individual methods were not excluded.
    For example: excludeindividualmethods="false"

    'totalfile' - name of XML file containing all methods included in the coverage measurement
    For example: totalfile="totalMethods.xml"

    'testedfile' - name of XML file to contain all tested methods
    For example: testedfile="testedMethods.xml"

    'untestedfile' - name of XML file to contain all untested methods
    For example: untestedfile="untestedMethods.xml"

    'onelinefile' - name of XML file containing all one-line methods
    For example: onelinefile="oneLineMethods.xml"

    'constructorfile' - name of XML file containing all cosntructors
    For example: constructorfile="constructorsMethods.xml"

    'excludedindividualfile' - name of XML file containing all individually excluded methods
    For example: excludedindividualfile="excludedIndividualMethods.xml"

If any of the optional attributes are not specified, their default values specified in the examples are used. For example, to exclude methods with one line of source code from the coverage measurement, specifiy the 'excludeonelinemethods' attribute with a 'true' value. When not specified, one-line methods will be included in the coverage report.

Use this class to execute JBlanketReport with Ant. One example of the 'jblanketreport' Ant target is:

 <taskdef name="jblanketreport" classname="csdl.jblanket.ant.JBlanketReportTask"/>
 <jblanketreport excludeonelinemethods="true"
 totalfile="myTotalMethods.xml"
 testedfile="myTestedMethods.xml"
 reportformat="frames"
 verbose="true"/>
 
From the example, one-line methods were excluded and constructors were included. No methods were individually excluded. The total methods are stored in 'myTotalMethods.xml', tested methods will be stored in 'myTestedMethods.xml'. Untested methods will be stored in its default file and excluded one-line methods are stored in its default file. The HTML report will use frames. Additional output will be sent to standard out.

Another more basic example is:

 <jblanketreport verbose="true"/>
 
where all files are referred to by their default values and one-line methods and constructors are included in the coverage measurement. Additional output will not be sent to standard out. The HTML report format will use frames.
author:
   Joy M. Agustin
version:
   $Id: JBlanketReportTask.java,v 1.1 2004/11/07 00:32:33 timshadel Exp $id


Field Summary
protected  StringtestedFile
    
protected  StringuntestedFile
    

Constructor Summary
public  JBlanketReportTask()
     Constructs a new JBlanketReportTask object.

Method Summary
public  voidexecute()
     Executes the report Ant taskdef.
public  voidsetReportformat(String format)
     Sets the format of the final HTML report containing coverage results.
public  voidsetTestfile(String testedFile)
     Sets the name of the XML file for the tested methods.
public  voidsetToDir(String toDirString)
     Sets the output directory of the final HTML report containing coverage results.
public  voidsetUntestfile(String untestedFile)
     Sets the name of the XML file for the untested methods.

Field Detail
testedFile
protected String testedFile(Code)
Name of file for tested methods



untestedFile
protected String untestedFile(Code)
Name of file for untested methods




Constructor Detail
JBlanketReportTask
public JBlanketReportTask()(Code)
Constructs a new JBlanketReportTask object.




Method Detail
execute
public void execute()(Code)
Executes the report Ant taskdef.



setReportformat
public void setReportformat(String format)(Code)
Sets the format of the final HTML report containing coverage results.
Parameters:
  format - the report format, either frames or noframes.



setTestfile
public void setTestfile(String testedFile)(Code)
Sets the name of the XML file for the tested methods.
Parameters:
  testedFile - the test file name.



setToDir
public void setToDir(String toDirString)(Code)
Sets the output directory of the final HTML report containing coverage results.
Parameters:
  toDirString - directory the report format, either frames ornoframes.



setUntestfile
public void setUntestfile(String untestedFile)(Code)
Sets the name of the XML file for the untested methods.
Parameters:
  untestedFile - the untested file name.



Fields inherited from csdl.jblanket.ant.JBlanketTask
protected String constructorFile(Code)(Java Doc)
protected boolean enable(Code)(Java Doc)
protected boolean excludeConstructors(Code)(Java Doc)
protected boolean excludeIndividualMethods(Code)(Java Doc)
protected boolean excludeOneLineMethods(Code)(Java Doc)
protected String excludedIndividualFile(Code)(Java Doc)
protected String oneLineFile(Code)(Java Doc)
protected String totalFile(Code)(Java Doc)
protected boolean verbose(Code)(Java Doc)

Methods inherited from csdl.jblanket.ant.JBlanketTask
public void addConfiguredSysproperty(Environment.Variable systemProperty)(Code)(Java Doc)
public void setConstructorfile(String constructorFile)(Code)(Java Doc)
public void setEnable(String enable)(Code)(Java Doc)
public void setExcludeconstructors(String excludeConstructors)(Code)(Java Doc)
public void setExcludedindividualfile(String excludedIndividualFile)(Code)(Java Doc)
public void setExcludeindividualmethods(String excludeIndividualMethods)(Code)(Java Doc)
public void setExcludeonelinemethods(String excludeOneLineMethods)(Code)(Java Doc)
public void setFork(String value)(Code)(Java Doc)
public void setOnelinefile(String oneLineFile)(Code)(Java Doc)
public void setPrintsummary(String value)(Code)(Java Doc)
public void setTotalfile(String totalFile)(Code)(Java Doc)
public void setVerbose(String value)(Code)(Java Doc)

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