Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8541807
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T11:54:53+00:00 2026-06-11T11:54:53+00:00

Following the standard convention I keep my source code and unit tests in separate

  • 0

Following the standard convention I keep my source code and unit tests in separate folders.
I follow the same package structure when creating the test.

For example, if there is a class OrderGenerator in package com.kshitiz in folder src my unit test would be OrderGeneratorTest in com.kshitiz in folder test.

In my current setup this type of organization becomes unmanageable after a while. I cannot write the unit tests before the code. Some other developer is responsible for writing the code and I am supposed to followup with test cases. (Yes I know it should be the other way around but I can’t help it)

Since the test cases are written second I must go through all the packages looking for classes and look for methods in those classes to ensure that I’ve got a test for them. With 100s of classes and 1000s of methods its quite painful.

Is there a way to make sure that your test case coverage is in line with the code? Is there a simple way to find the classes that don’t have a corresponding test case somewhere?

I am using Java, Eclipse and Junit 4.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T11:54:54+00:00Added an answer on June 11, 2026 at 11:54 am

    EclEmma

    EclEmma is a free Java code coverage tool for Eclipse, available under the Eclipse Public License. It brings code coverage analysis directly into the Eclipse workbench:

    • Fast develop/test cycle: Launches from within the workbench like JUnit test runs can directly be analyzed for code coverage.
    • Rich coverage analysis: Coverage results are immediately summarized and highlighted in the Java source code editors.
    • Non-invasive: EclEmma does not require modifying your projects or performing any other setup.

    Code coverage will tell you not only which classes are tested (directly or indirectly) by your tests but also which methods and within those, which branches are covered by your tests. It can be a really great guide to figure out where to spend early testing effort.

    Here’s the kind of report it gives you:

    enter image description here

    You can see in the panel at the bottom right how much of each class is covered, so the class second from the bottom is hardly tested at all. At the top right, it shows which branches are covered — obviously that method has never been tested with empty inputs.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm attempting to make a python package of the following hierarchy: \standard \__init__.py \text.txt
Following the standard instruction for using AES algorithm, I have not been able to
Consider the following 3 standard statements $queryString = SOME SQL SELECT QUERY; $queryResult =
I have the following problem that the standard library doesn't solve well, and I'm
I have the following setup: eclipse a standard Java project (A) an eclipse plugin
I have a standard ActiveRecord model with the following: class MyModel < ActiveRecord::Base custom_method
According to the C++11 standard, is the following program well-formed and portable C++? int
When using a standard asp:Button component, it is necessary to use the following technique
I've just spotted the following in the C99 ISO standard, 7.19.6.1 The fprintf function
I'm using Visual C++ 2008 SP1 Pro. Following code snippet will fail to compile:

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.