Overview
Discover best practices, pitfalls, and recipes for testing Spring Boot applications in this insightful conference talk from Spring I/O 2023. Explore the journey of a developer learning to test Spring Boot applications, from university experiences to real-world challenges. Gain valuable knowledge about essential testing tools like Spring Boot Starter Test, Mockito, and JSON assertion libraries. Learn how to avoid common pitfalls such as over-reliance on auto-generated tests and excessive use of Spring Boot Test annotations. Understand the importance of proper test slicing, including Web MVC tests and Mock MVC tests. Master JUnit 5 techniques and discover how to create more efficient and maintainable tests for your Spring Boot projects. Equip yourself with the knowledge needed to write effective tests and improve the overall health of your Spring Boot applications.
Syllabus
Intro
How I got into testing
University
After University
First Ticket
About me
Testing Swiss Army Knife
Spring Boot Starter Test
Dependency Tree
Mokito
SRJ
Json assert
Json path
Dependency management
Spring Bootest isnt always your friend
Autogenerated tests
Application context
Spring Boot Test Obsession
Spring Boot Tests All Over The Place
Unit Tests
Slicing
Slice Annotations
Webmdc Tests
Mock MVC Tests
Slice Annotation
JUnit 5 Pitfall
Summary
Conclusion
Outro
Taught by
Spring I/O