Re: code coverage (Clover, Cobertura, that sort of thing)
Adam Hardy <[email protected]> Tue, 24 Jun 2008 12:27:58 +0100
| Newsgroups | gmane.comp.web.httpunit.devel |
|---|---|
| Message-ID | <[email protected]> |
Russell Gold on 24/06/08 01:30, wrote: > On Jun 21, 2008, at 12:35 PM, Adam Hardy wrote: > >> Sorry, I was not being obvious. >> >> If Clover or Cobertura tell me how much of my Java code base my JUnit tests >> cover, what reporting tool tells me how much of my JSP and MVC code base >> my HttpUnit tests cover? > > Clover or Cobertura again, but this time run against your servlet engine > process rather than your client. There's nothing really unique about this. > You get your code coverage by running your tests against your code. The > biggest difference is simply that in this case, your tests are not in the > same VM as your code. Just instrument your pre- compiled JSPs and MVC code, > make sure your servlet engine is running with the appropriate libraries and > run your tests. Thanks for the tip. I'll try that out - hopefully it won't be a big deal to configure cobertura to do this. I'm intrigued to find out what the code coverage report for the JSPs will look like. Regards Adam ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php