Even if you are familiar with Unit Testing, JUnit, and Test Driven Development your skills will be sharpened by the content in this book. The book jumps right into general principles of unit testing such as what to test, how much test code to write, and when to test. A concept named Right-BICEP is i
Java Unit Testing with JUnit 5: Test Driven Development with JUnit 5
โ Scribed by Shekhar Gulati, Rahul Sharma
- Publisher
- Apress
- Year
- 2017
- Tongue
- English
- Leaves
- 158
- Edition
- 1
- Category
- Library
No coin nor oath required. For personal study only.
โฆ Synopsis
Explore the new way of building and maintaining test cases with Java test driven development (TDD) using JUnit 5. This book doesn't just talk about the new concepts, it shows you ways of applying them in TDD and Java 8 to continuously deliver code that excels in all metrics.
Unit testing and test driven development have now become part of every developer's skill set. For Java developers, the most popular testing tool has been JUnit, and JUnit 5 is built using the latest features of Java. With Java Unit Testing with JUnit 5, you'll master these new features, including method parameters, extensions, assertions and assumptions, and dynamic tests. You'll also see how to write clean tests with less code.
This book is a departure from using older practices and presents new ways of performing tests, building assertions, and injecting dependencies.
What You Will Learn
- Write tests the JUnit 5 way
- Run your tests from within your IDE
- Integrate tests with your build and static analysis tools
- Migrate from JUnit 4 to JUnit 5
Java developers both with and without any prior unit testing experience.
โฆ Table of Contents
Front Matter ....Pages i-xiii
Building Software the Correct Way (Shekhar Gulati, Rahul Sharma)....Pages 1-23
Understanding Core JUnit 5 (Shekhar Gulati, Rahul Sharma)....Pages 25-44
Developing an Application with JUnit 5 (Shekhar Gulati, Rahul Sharma)....Pages 45-66
Dependency Injection, Mocking, Testing Traits, and Grouping Tests (Shekhar Gulati, Rahul Sharma)....Pages 67-88
Testing Exceptions (Shekhar Gulati, Rahul Sharma)....Pages 89-98
Integrating Tools (Shekhar Gulati, Rahul Sharma)....Pages 99-119
JUnit 5 Extension Model (Shekhar Gulati, Rahul Sharma)....Pages 121-137
Dynamic Tests and Migration from JUnit 4 (Shekhar Gulati, Rahul Sharma)....Pages 139-147
Back Matter ....Pages 149-151
โฆ Subjects
Java
๐ SIMILAR VOLUMES
Even if you are familiar with Unit Testing, JUnit, and Test Driven Development your skills will be sharpened by the content in this book. The book jumps right into general principles of unit testing such as what to test, how much test code to write, and when to test. A concept named Right-BICEP is i
In the second volume of the sequence, Hunt and Thomas (software developers) offer guidance on writing better code, detecting and fixing potential problems, testing pieces of code, and testing with a whole team. They describe the process of unit testing with the freely-available JUnit library in Java
JUnit has matured to become the most important tool when it comes to automated developer tests in Java. Supported by all IDEs and build systems, it empowers programmers to deliver software features reliably and efficiently. However, writing good unit tests is a skill that needs to be learned; otherw