Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Emma and JUnit

 
peter wooster
Ranch Hand
Posts: 1033
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nice work, really impressive. Just efficiency at its best.
 
j guar
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic