Solved

code testing coverage

Posted on 2009-05-20
1
313 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
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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
jboss wildfly 10.1 10 229
How to make a short video of something I cannot simply screenshot? 11 47
eclipse console opening separately 2 29
Moving files from folder to folder 8 42
Healthcare organizations in the United States must adhere to the guidance of both the HIPAA (Health Insurance Portability and Accountability Act) and HITECH (Health Information Technology for Economic and Clinical Health Act) for securing and protec…
In this article, you will read about the trends across the human resources departments for the upcoming year. Some of them include improving employee experience, adopting new technologies, using HR software to its full extent, and integrating artifi…
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.
An overview on how to enroll an hourly employee into the employee database and how to give them access into the clock in terminal.

861 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