wood burning stoves
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

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » Testing
Bookmark "Emma and JUnit" Watch "Emma and JUnit" New topic

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.

Cam Esp

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

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

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
It's not a secret anymore!