File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Testing and the fly likes Web Application Code Coverage Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Make it so: Java DB Connections & Transactions this week in the JDBC forum!
JavaRanch » Java Forums » Engineering » Testing
Bookmark "Web Application Code Coverage" Watch "Web Application Code Coverage" New topic

Web Application Code Coverage

srimaan yerram

Joined: May 08, 2008
Posts: 1

I am new bee in web application development, I have set of test suites(junit) and i use junitee framework to execute those test suites/cases now i need to validate how much of test coverage or code is being exercised. can any one help me out finding the best code coverage tool and how to do the code coverage...

Jeanne Boyarsky
author & internet detective

Joined: May 26, 2003
Posts: 32844

Welcome to JavaRanch!

We have a forum specifically for testing questions. I'll move this for you.

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
Jeanne Boyarsky
author & internet detective

Joined: May 26, 2003
Posts: 32844

I like emma for code coverage. It instruments the code beforehand so you can then run the app (or junitee tests) and then view the report.
David O'Meara

Joined: Mar 06, 2001
Posts: 13459

Same with clover

When you compile your code, it compiles 'reporting code' into your application, and while your code runs it writes information to a common location. The docs for both will describe how to include coverage for web applications.
I agree. Here's the link:
subject: Web Application Code Coverage
It's not a secret anymore!