Featured Webinar: MISRA C++ 2023: Everything You Need to Know | Watch Now
Java Code Coverage
Java Code Coverage
Powered by Parasoft Jtest, the enterprise development testing solution for Java
Code Coverage for Java
Use Parasoft Jtest to get broader visibility into what you’re testing, how well you’re testing it, and how to customize test plans based on priorities. Jtest captures code coverage from testing frameworks and at runtime for desktop/web applications. By associating coverage with specific tests (including manual tests, automated functional tests, and unit tests), Jtest helps you understand which tests you need to re-execute to validate code changes.
How Does It Work?
For unit testing, Jtest collects coverage data for unit tests that are run from different build systems (Ant, Maven or Gradle), IDEs (Eclipse and IntelliJ), and the most popular testing framework (JUnit). Jtest analyzes every line of code and marks it as covered if it was executed during the testing process. Total coverage is the ratio of covered lines to all the lines which could have been covered. Users can easily check if their code has been thoroughly tested by inspecting coverage reports, or check if they are meeting their code coverage requirements. Parasoft’s coverage report enables the user to easily identify the lines and portions of code that were not covered.
Jtest also enables customers to monitor standalone and web applications to collect coverage information for code that was executed when an application was running. QAs and testers can collect coverage data from their manual or automated testing sessions, and Jtest can easily integrate with third-party test execution software for an automated process.
To provide effective test traceability, Parasoft tracks the covered code per test, especially useful when a user wants to check what exactly is tested by their test case, or to ensure proper test isolation (for instance, if a unit test executes unintended code, that accesses locally-stored files or modifies the environment, the user can stub or mock it).
Benefit from the Parasoft Approach
Parasoft Jtest Resources
Raise the bar on Java code quality and boost team productivity with Parasoft Jtest.