Giter Club home page Giter Club logo

java-testing-toolbox's Introduction

Hands-On Introduction to the Java Testing Ecosystem

Maven Build

 Book Cover

This repository contains the source code for the book 30 Testing Tools & Libraries Every Java Developer Must Know.

You can find the source code for the various testing tools & libraries within spring-boot-example/src/test/java/de/rieckpil/blog. Each tool & library has its dedicated Java package.

The only exception to this rule is MicroShed Testing, which is part of the jakarta-ee-example project.

Current Status: 20/30 tools and libraries are covered. The final release (30/30) is scheduled for Q1 2024.

Grab your copy here.

Goals of the Book

  • Enrich your existing testing toolbox
  • Use the right tool for the job
  • Inform about various tools & libraries of the Java testing ecosystem
  • Cookbook-style introduction for each testing tool & library
  • Hands-on testing examples that apply for testing any Java application

Build & Test

Requirements:

  • Java 11: java -version
  • A running Docker engine (required for Testcontainers): docker info

Build the project and run all tests with:

cd spring-boot-example
./mvnw verify

cd jakarta-ee-example
./mvnw verify

Content

The book uses a Spring Boot and Jakarta EE application to demonstrate the different tools & libraries. Both sample applications only use a minimal subset of Spring Boot/Jakarta EE features so that you can easily apply the knowledge to your tech stack.

Test Frameworks

  • JUnit 4
  • JUnit 5
  • TestNG
  • Spock
  • ...

Assertion Libraries

  • AssertJ
  • JsonPath
  • Hamcrest
  • XMLUnit
  • JSONAssert
  • REST Assured
  • ...

Mocking Frameworks

  • Mockito
  • WireMock
  • MockWebServer
  • PowerMock
  • ...

Test Infrastructure

  • Testcontainers
  • LocalStack
  • MicroShed Testing
  • Citrus
  • GreenMail
  • Selenium
  • ...

Utility Libraries

  • Selenide
  • Pact (upcoming)
  • Spring Cloud Contract (upcoming)
  • Diffblue
  • FitNesse
  • Awaitility (upcoming)
  • ...

Performance Testing

  • JMH (upcoming)
  • JMeter (upcoming)
  • Gatling
  • Quick Perf
  • ApacheBench
  • ...

java-testing-toolbox's People

Contributors

rieckpil avatar dependabot[bot] avatar jayant019 avatar pradeepmurugesan avatar syedaffanhamdani avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.