Java Testing

Open-source Java projects categorized as Testing

Top 23 Java Testing Projects

  • Selenium WebDriver

    A browser automation framework and ecosystem.

    Project mention: how to change as much as i want even after initializing the driver | | 2022-11-28

    There's no way to change options once a webdriver is initialized as it ties the Firefox binary to that instance, here's the source code:

  • Mockito

    Most popular Mocking framework for unit tests written in Java

    Project mention: 5 easy paths to become a recognized Java expert. Really. For free. | | 2022-08-25
  • Zigi

    The context switching struggle is real. Zigi makes context switching a thing of the past. It monitors Jira and GitHub updates, pings you when PRs need approval and lets you take fast actions - all directly from Slack!

  • JUnit

    A programmer-oriented testing framework for Java.

    Project mention: How to run Java without Maven, Gradle, or IDE | | 2022-08-10

    Oops, another error. This is why we should read the manual 😅.

  • Apache JMeter

    Apache JMeter open-source load testing tool for analyzing and measuring the performance of a variety of services

    Project mention: Deep Dive: Migrating from a Data Center to AWS | | 2022-11-03

    We set up staging environments in AWS to test our new infrastructure. Starting with some relatively modest capacity choices (1-2 t3.small instances per web app), we performed load tests on the most popular pages on each site. We built some simple load testing scripts that wrapped Apache JMeter commands:

  • Testcontainers

    Testcontainers is a Java library that supports JUnit tests, providing lightweight, throwaway instances of common databases, Selenium web browsers, or anything else that can run in a Docker container.

    Project mention: Testcontainers for Hashicorp Consul and Vault | | 2022-02-16

    The list goes on. Check out the full list of Testcontainer modules.

  • Karate

    Test Automation Made Simple

    Project mention: Interview | | 2022-11-27
  • REST Assured

    Java DSL for easy testing of REST services

    Project mention: How To Modify HTTP Request Headers In JAVA Using Selenium WebDriver? | | 2022-05-09

    The prerequisites to configure REST Assured with your project in any IDE (e.g., Eclipse) is fairly easy. After setting up Java, Eclipse, and TestNG, you would need to download the required REST Assured jar files.

  • Sonar

    Write Clean Java Code. Always.. Sonar helps you commit clean code every time. With over 600 unique rules to find Java bugs, code smells & vulnerabilities, Sonar finds the issues while you focus on the work.

  • WireMock

    A tool for mocking HTTP services

    Project mention: How to Boost Code Coverage with Functional Testing | | 2022-11-01

    Yes I agree, mocking is a bit of an overloaded term, and the libraries we used for stubbing like gRPC Mock and WireMock also have `mock` in their name, even though they are real servers with stubbing

  • Moco

    Easy Setup Stub Server

  • PowerMock

    PowerMock is a Java framework that allows you to unit test code normally regarded as untestable.

    Project mention: InaccessibleObjectException on Part 4 | | 2022-02-19

    A little hunting suggests that it is the old version of powermock, used by the MOOC tests that is tripping up in JDK 16+ now that there are restrictions on accesses for internal methods.

  • MockServer

    MockServer enables easy mocking of any system you integrate with via HTTP or HTTPS with clients written in Java, JavaScript and Ruby. MockServer also includes a proxy that introspects all proxied traffic including encrypted SSL traffic and supports Port Forwarding, Web Proxying (i.e. HTTP proxy), HTTPS Tunneling Proxying (using HTTP CONNECT) and SOCKS Proxying (i.e. dynamic port forwarding).

    Project mention: Testing with MockServer | | 2022-06-13

    I've just found out MockServer and it looks awesome 🤩 so I wanted to check it out repeating the steps of my previous demo WireMock Testing which (as you can expect) uses WireMock, another fantastic tool to mock APIs.

  • Java Faker

    Brings the popular ruby faker gem to Java

    Project mention: Favorite hidden gem library? | | 2022-10-21

    JavaFaker for generating random data

  • Spock

    The Enterprise-ready testing and specification framework.

    Project mention: There is framework for everything. | | 2022-08-04
  • Awaitility

    Awaitility is a small Java DSL for synchronizing asynchronous operations

    Project mention: Favorite hidden gem library? | | 2022-10-21

    I hope everybody knows by now.

  • Truth

    Fluent assertions for Java and Android

    Project mention: Any resources for Unit Tests? | | 2022-08-29

    Truth or AssertJ for easier assertions in tests with better exceptions

  • Cucumber

    Cucumber for the JVM

  • ArchUnit

    A Java architecture test library, to specify and assert architecture rules in plain Java

  • AssertJ

    AssertJ is a library providing easy to use rich typed assertions

    Project mention: Any suggestions for good open source Java codebases to study(With below criteria)? | | 2022-11-18


  • Hamcrest

    Java (and original) version of Hamcrest

    Project mention: Spring Boot + JPA — Clear Tests | | 2021-12-16

    Hamcrest is an assertion library that helps to build a declarative pipeline of matchers. For example, that's how posts count can be validated.

  • TestNG

    TestNG testing framework

    Project mention: Why does Rusts testing tools seem so much less polished compared to its other tooling? | | 2022-08-12

    Testing tools on the JVM stopped using reflection about twenty years ago, they all use annotations these days (e.g., Rust has annotations too, obviously.

  • Selenide

    Concise UI Tests with Java!

    Project mention: [Help] Selenium cannot find the element | | 2022-03-29

    I'd like to add to recommendations for Java with Selenium like stuff: Selenide is a framework that sits on top of Selenium. It makes things so much easier. If you have the opportunity to use it, you can make your life much easier than straight Selenium.

  • Jailer

    Database Subsetting and Relational Data Browsing Tool.

    Project mention: JDBC based Database Tool | | 2022-11-29

    Jailer Database Tools.

  • PIT

    State of the art mutation testing system for the JVM

  • InfluxDB

    Build time-series-based applications quickly and at scale.. InfluxDB is the Time Series Data Platform where developers build real-time applications for analytics, IoT and cloud-native services in less time with less code.

NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020). The latest post mention was on 2022-11-29.

Java Testing related posts


What are some of the best open-source Testing projects in Java? This list will help you:

Project Stars
1 Selenium WebDriver 25,191
2 Mockito 13,479
3 JUnit 8,389
4 Apache JMeter 6,597
5 Testcontainers 6,549
6 Karate 6,463
7 REST Assured 6,115
8 WireMock 5,239
9 Moco 4,072
10 PowerMock 3,929
11 MockServer 3,928
12 Java Faker 3,854
13 Spock 3,274
14 Awaitility 3,234
15 Truth 2,547
16 Cucumber 2,510
17 ArchUnit 2,471
18 AssertJ 2,263
19 Hamcrest 2,011
20 TestNG 1,789
21 Selenide 1,586
22 Jailer 1,473
23 PIT 1,464
Truly a developer’s best friend
Scout APM is great for developers who want to find and fix performance issues in their applications. With Scout, we'll take care of the bugs so you can focus on building great things 🚀.