aspose file tools*
The moose likes Testing and the fly likes Emma and JUnit Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Testing
Bookmark "Emma and JUnit" Watch "Emma and JUnit" New topic
Author

Emma and JUnit

peter wooster
Ranch Hand

Joined: Jun 13, 2004
Posts: 1033
I've made an ANT build file that uses Emma with seperate instrumentation to run the JUnit money sample. This was inspired by the Clover tutorial example and should be familiar to anyone who has used that. Here's the build.xml file:



Vlad, I'd appreciate any comments or suggestions.

/peter
Cam Esp
Greenhorn

Joined: Aug 09, 2005
Posts: 1
Nice work, really impressive. Just efficiency at its best.
j guar
Greenhorn

Joined: May 03, 2006
Posts: 1
Peter, I noticed what I believe is a mistake. Instead of
<emma enabled="emma.enabled"

I think you should have
<emma enabled="${emma.enabled}"

as the variable contents being "false" or "true" are what matters, not whether the variable has been set.
Nidhi Garg
Greenhorn

Joined: Jun 19, 2009
Posts: 21
i have some .testdata and .testinfo files for junit testing. How do i include these in junit using emma.
when i am testing , i am getting error for these missing files.
where can i include non java classfiles in target test for junit ??

please reply
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Emma and JUnit