Solved

code testing coverage

Posted on 2009-05-20
1
316 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 3

Accepted Solution

by:
hazgoduk earned 500 total points
ID: 24434296
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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
texting/mms service for clients 4 57
ejb entity bean example 2 57
Why is enum singleton a better approach than static factory 3 66
Copying out Cisco backups from SolarWinds 13 121
Skype is a P2P (Peer to Peer) instant messaging and VOIP (Voice over IP) service – as well as a whole lot more.
There are many software programs on offer that will claim to magically speed up your computer. The best advice I can give you is to avoid them like the plague, because they will often cause far more problems than they solve. Try some of these "do it…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
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…
Suggested Courses

732 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