Various tools exist that can make unit testing less complicated and time-consuming. Diffblue Cover is just one example; this tool automatically creates human-readable Java unit tests, increasing test coverage and helping you find regressions in future code changes. …


Our DevOps and Testing Report clearly lays out the problems that organizations face when it comes to unit testing. …


Spring and Spring Boot are well-known frameworks full of great features that are commonly used when developing Java applications, thanks to their comprehensive nature. Testing your Spring applications is important, and it may be more straightforward than you think.

If you need an introduction to Spring Boot testing in general…


Testing early is a foundational part of embracing DevOps and modernizing your team. This idea has been emphasized recently in Gartner’s new infographic: the Top 10 Technology Trends Impacting DevOps.

We know that testing is imperative when it comes to delivering quality products; however as trends push everything to be…


I have long been an admirer of the Puppet Labs “ State Of DevOps Report “ and it is required annual reading as both a real-world benchmark of DevOps adoption, and for its cogent analysis of inhibitors and accelerators that correlate with DevOps maturity.

The 2020 report came out right…


CODEX

Unit regression tests are tests that run early in the development process and find coding errors that break something that used to work (i.e., a regression). A tool like Diffblue Cover can write such unit regression tests automatically.

A very good example of the prevalence of regressions problem in software…


CODEX

In the last year, we’ve surveyed hundreds of developers in the US and the UK about their preferences on topics ranging from DevOps, to testing, to the characteristics they like and dislike in a workplace, and what software quality means to them. On many things, the two groups are in…


Suppose you have spent the day coding a new feature in your application. You now need to write unit tests for the code you’ve just added. What test cases should you write for your code? Do you write tests so all lines are covered? All branches? …


Today, we’re going to look at unit testing in general, and then focus on what makes good and bad test inputs. …


Most unit tests are organized in 3 sections:

  • Arrange: set up the environment and prepare a bunch of objects to run the unit under test
  • Act: call the unit under test
  • Assert: check that outputs and side effects of the unit under test are as expected

These three sections are…

Daniel Kroening

Professor of Computer Science and Co-founder of Diffblue | We’re making developers wildly more productive with AI for Code

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store