Effective Automated Testing

with Spring


A Keyhole developer published a course on Effective Automated Testing with Spring via Pluralsight in January 2018. In the creation of the course modules, he found many important topics to talk about that he didn't have time to cover in the course. His goal is to share what he learned about automated testing with other developers.

In this blog tutorial series, we take a look at automated testing best practices, tools that make automated testing easier and more valuable, and where automated testing fits into our responsibility as software developers


Series


Part One

Without Automated Testing You Are Building Legacy

How automated testing, or rather the lack there of, lies at the heart of a lot of the struggles we face as developers.

Part Two

Four Common Mistakes That Make Automated Testing More Difficult

Four common mistakes that developers make when writing code or tests that can make automated testing more difficult.

Part Three

Encouraging Good Behavior with JUnit 5 Test Interfaces

How test interfaces can help developers be more likely to actually write automated tests + promote consistent patterns across the enterprise.

Part Four

Conditionally Disabling and Filtering Tests in JUnit 5

Discussion & examples of the improvements JUnit 5 brings to the table for filtering, tagging, and conditionally disabling automated tests.

Part Five

What’s New in JUnit 5.1

JUnit 5.1 changes that are most impactful to the day-to-day tasks of writing automated tests, like improvements to conditionally disabling and enabling tests, parameterized tests, and programmatic extensions.

Part Six

Fluent Assertions with AssertJ

Using testing library AssertJ to write automated tests that are easier to read with assertions, object comparisons, and validation. Examples show the benefits of using tests as living documentation, continually checked for validity as a project changes and grows over time.

Part Seven

Why Am I Writing This Test?

A discussion of the three major purposes for writing automated unit tests. How they should be approached + what developers and automated testers can do right now to establish more purposeful practices. 

Part Eight

What's New In JUnit 5.2

Enhancements added in JUnit 5.2 released on April 29th. We'll focus on build tool enhancements that help in the adoption/migration to JUnit 5 for existing test suites and resolve annoyances, as well as what new changes further improve parameterized tests.

Additional Resources


If you would like to learn more on the topics displayed in this series, please check out the Effective Automated Testing with Spring course on Pluralsight or take a look at some of our recent blogs on the subject.