Solved

code testing coverage

Posted on 2009-05-20
1
306 Views
Last Modified: 2013-12-13
what should be the percentage of code test coverage in junit for java code. Also what code is hard to test or cannot be tested with junit
0
Comment
Question by:SunScreenCert
1 Comment
 
LVL 3

Accepted Solution

by:
hazgoduk earned 500 total points
Comment Utility
You can't test private functions with JUnit unless they are accessed by public functions that you can test. You can try JUnitX if you need to test private functions. As for a percentage, that's hard to say. The more coverage you have, the less you need to test manually
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

I previously wrote an article addressing the use of UBCD4WIN and SARDU. All are great, but I have always been an advocate of SARDU. Recently it was suggested that I go back and take a look at Easy2Boot in comparison.
Today companies are subjected to more-and-more data, and it won't stop any time soon.  But there are obvious opportunities for reducing data, particularly data duplicated among companies.
The viewer will learn how to successfully download and install the SARDU utility on Windows 8, without downloading adware.
XMind Plus helps organize all details/aspects of any project from large to small in an orderly and concise manner. If you are working on a complex project, use this micro tutorial to show you how to make a basic flow chart. The software is free when…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now