Remove Code Remove Java Remove Testing
article thumbnail

How To Generate Code Coverage Report Using JaCoCo-Maven Plugin

DZone

Code coverage is a software quality metric commonly used during the development process that let’s you determine the degree of code that has been tested (or executed). To achieve optimal code coverage, it is essential that the test implementation (or test suites) tests a majority percent of the implemented code.

Code 317
article thumbnail

SKP's Java/Java EE Gotchas: Clash of the Titans, C++ vs. Java!

DZone

Considering all aspects and needs of current enterprise development, it is C++ and Java which outscore the other in terms of speed. So much for my blog title :-) So when these titans are pit against each other in real-time, considering all aspects of memory and execution time — Java is floored. JAVA SOLUTION (Will Be Uploaded Later).

Java 214
Insiders

Sign Up for our Newsletter

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

article thumbnail

Find vulnerabilities in your code—don’t wait for someone to exploit them

Dynatrace

However, organizations face several challenges with current security testing practices, including: Limited resources: Across the globe, it’s increasingly difficult to find and allocate the necessary personnel to do thorough security testing. High false-positive rates: Traditional security testing tools generate numerous findings.

Code 213
article thumbnail

Top 5 JUnit and Unit Testing Courses for Java Programmers

DZone

Today, we're going to talk about JUnit and unit testing, one of the key skills for any software developer. You may already know that JUnit and Mockito are two of the most popular testing libraries for Java applications, and you will find them in almost every Java application classpath.

Java 189
article thumbnail

Java Unit Testing Best Practices: How to Get the Most Out of Your Test Automation

DZone

Unit testing is a well-known practice, but there's lots of room for improvement! In this post, the most effective unit testing best practices, including approaches for maximizing your automation tools along the way. We will also discuss code coverage, mocking dependencies, and overall testing strategies.

article thumbnail

Fighting Fragility With Property-Based Testing

DZone

Property-based testing (PBT) is such an established technology and it deserves more attention. Java has the Jqwik library, Scala has ScalaCheck and Python has Hypothesis. You encounter some seemingly cutting-edge new tool only to learn it has been around for decades, sometimes inspired by research papers from 1970.

Testing 346
article thumbnail

Unit Testing Log Messages Made Easy

DZone

As a Java Developer, we need to cover a lot of scenarios to ensure the quality of our software and catch bugs as soon as possible when introducing a new code. For 99% of all my use cases AssertJ, Junit, Mockito, and Wiremock are sufficient enough do cover the test cases. So the LogCaptor library came into life.

Testing 360