[josm-dev] JUnit HTML report

Marcin Floryan mfloryan at mm.waw.pl
Sat Jan 29 09:04:22 GMT 2011


 Hi!

 I've been contributing to JOSM a couple of years ago and now found some 
 more time to work on the project.

 I was thinking of looking into unit tests a little bit and extend the 
 coverage. Are there any guidelines around unit testing, what's the 
 general approach? Do people feel adding more test coverage will be 
 valuable for the project?

 I also added HTML reports for Junit to the build (as an optional task 
 as it may require some dependencies for ant) but since my old SVN 
 password doesn't seem to work, I'm attaching it as a patch here.

 Finally, I've played with code coverage a little bit and have managed 
 to generate a sample coverage report:
 http://mfloryan.statnet.pl/josm-test-coverage/

 I already have another ant task for generating it automatically but it 
 requires cubertura as a dependency so I'm not including it yet. (It 
 would be fairly easy though to use maven to fetch these dependencies 
 automatically during build without a need to including them in SVN).

 Regards,
 Marcin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: svn3790-build.xml-test-html.patch
Type: text/x-diff
Size: 785 bytes
Desc: not available
URL: <http://lists.openstreetmap.org/pipermail/josm-dev/attachments/20110129/bab3448b/attachment.patch>


More information about the josm-dev mailing list