Mastering Software Testing with JUnit 5

A comprehensive, hands-on guide on unit testing framework for Java programming language
Preview in Mapt

Mastering Software Testing with JUnit 5

Boni García

A comprehensive, hands-on guide on unit testing framework for Java programming language

Quick links: > What will you learn?> Table of content

Mapt Subscription
FREE
$29.99/m after trial
eBook
$25.20
RRP $35.99
Save 29%
Print + eBook
$44.99
RRP $44.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$25.20
$44.99
$29.99 p/m after trial
RRP $35.99
RRP $44.99
Subscription
eBook
Print + eBook
Start 14 Day Trial

Frequently bought together


Mastering Software Testing with JUnit 5 Book Cover
Mastering Software Testing with JUnit 5
$ 35.99
$ 25.20
Architecting Modern Java EE Applications Book Cover
Architecting Modern Java EE Applications
$ 39.99
$ 28.00
Buy 2 for $35.00
Save $40.98
Add to Cart

Book Details

ISBN 139781787285736
Paperback350 pages

Book Description

When building an application it is of utmost importance to have clean code, a productive environment and efficient systems in place. Having automated unit testing in place helps developers to achieve these goals. The JUnit testing framework is a popular choice among Java developers and has recently released a major version update with JUnit 5.

This book shows you how to make use of the power of JUnit 5 to write better software.

The book begins with an introduction to software quality and software testing. After that, you will see an in-depth analysis of all the features of Jupiter, the new programming and extension model provided by JUnit 5. You will learn how to integrate JUnit 5 with other frameworks such as Mockito, Spring, Selenium, Cucumber, and Docker.

After the technical features of JUnit 5, the final part of this book will train you for the daily work of a software tester. You will learn best practices for writing meaningful tests. Finally, you will learn how software testing fits into the overall software development process, and sits alongside continuous integration, defect tracking, and test reporting.

Table of Contents

Chapter 1: Retrospective On Software Quality And Java Testing
Software quality
Software testing
Testing frameworks for the JVM
Summary
Chapter 2: What’s New In JUnit 5
Road to JUnit 5
JUnit 5 architecture
Running tests in JUnit 5
The extension model of JUnit 5
Summary
Chapter 3: JUnit 5 Standard Tests
Test lifecycle
Assertions
Tagging and filtering tests
Conditional test execution
Nested tests
Repeated tests
Migration from JUnit 4 to JUnit 5
Summary
Chapter 4: Simplifying Testing With Advanced JUnit Features
Dependency injection
Dynamic tests
Test interfaces
Test templates
Parameterized tests
Java 9
Beyond JUnit 5.0
Summary
Chapter 5: Integration Of JUnit 5 With External Frameworks
Mockito
Spring
Selenium
Cucumber
Docker
Android
REST
Summary
Chapter 6: From Requirements To Test Cases
The importance of requirements
Test planning
Test design
Software testing principles
Test anti-patterns
Summary
Chapter 7: Testing Management
Software development processes
Continuous Integration
Test reporting
Defect-tracking systems
Static analysis
Putting all pieces together
Summary

What You Will Learn

  • The importance of software testing and its impact on software quality
  • The options available for testing Java applications
  • The architecture, features and extension model of JUnit 5
  • Writing test cases using the Jupiter programming model
  • How to use the latest and advanced features of JUnit 5
  • Integrating JUnit 5 with existing third-party frameworks
  • Best practices for writing meaningful JUnit 5 test cases
  • Managing software testing activities in a living software project

Authors

Table of Contents

Chapter 1: Retrospective On Software Quality And Java Testing
Software quality
Software testing
Testing frameworks for the JVM
Summary
Chapter 2: What’s New In JUnit 5
Road to JUnit 5
JUnit 5 architecture
Running tests in JUnit 5
The extension model of JUnit 5
Summary
Chapter 3: JUnit 5 Standard Tests
Test lifecycle
Assertions
Tagging and filtering tests
Conditional test execution
Nested tests
Repeated tests
Migration from JUnit 4 to JUnit 5
Summary
Chapter 4: Simplifying Testing With Advanced JUnit Features
Dependency injection
Dynamic tests
Test interfaces
Test templates
Parameterized tests
Java 9
Beyond JUnit 5.0
Summary
Chapter 5: Integration Of JUnit 5 With External Frameworks
Mockito
Spring
Selenium
Cucumber
Docker
Android
REST
Summary
Chapter 6: From Requirements To Test Cases
The importance of requirements
Test planning
Test design
Software testing principles
Test anti-patterns
Summary
Chapter 7: Testing Management
Software development processes
Continuous Integration
Test reporting
Defect-tracking systems
Static analysis
Putting all pieces together
Summary

Book Details

ISBN 139781787285736
Paperback350 pages
Read More

Read More Reviews

Recommended for You

Architecting Modern Java EE Applications Book Cover
Architecting Modern Java EE Applications
$ 39.99
$ 28.00
Machine Learning: End-to-End guide for Java developers Book Cover
Machine Learning: End-to-End guide for Java developers
$ 75.99
$ 53.20
Understanding Software Book Cover
Understanding Software
$ 23.99
$ 16.80
Testing Practitioner Handbook Book Cover
Testing Practitioner Handbook
$ 35.99
$ 25.20
Mastering VMware vSphere 6.5 Book Cover
Mastering VMware vSphere 6.5
$ 39.99
$ 28.00
Mastering Machine Learning with MATLAB [Video] Book Cover
Mastering Machine Learning with MATLAB [Video]
$ 124.99
$ 106.25