Java Testing

Open-source Java projects categorized as Testing

Top 23 Java Testing Projects

  • Selenium WebDriver

    A browser automation framework and ecosystem.

    Project mention: Getting ModuleNotFoundError: No module named 'selenium' with Python on Windows | /r/learnpython | 2023-08-16


  • Mockito

    Most popular Mocking framework for unit tests written in Java

    Project mention: Wednesday Links - Edition 2023-01-18 | | 2023-01-18

    Mockito 5 Released (1 min)🎉

  • Revelo Payroll

    Free Global Payroll designed for tech teams. Building a great tech team takes more than a paycheck. Zero payroll costs, get AI-driven insights to retain best talent, and delight them with amazing local benefits. 100% free and compliant.

  • JUnit

    A programmer-oriented testing framework for Java.

    Project mention: Unit testing many possible cases | /r/learnprogramming | 2023-07-05
  • Apache JMeter

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

    Project mention: What's new in Apache JMeter 5.6? | | 2023-08-01

    Issue #5682Pull request #717 - Open Model Thread Group: avoid skipping rows from CSV Data Set Config

  • 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: Reasons to Drop Docker for Podman | | 2023-08-06

    > I wonder if Rancher Desktop, et al, works with

    I don't use testcontainers myself, but it looks like as long as you are using Rancher Desktop >= 1.0.1 you should be just fine.[1]


  • Karate

    Test Automation Made Simple

    Project mention: Cucumber Maintainer out of Job and future of the project is uncertain | | 2023-03-03

    This is why we need better tools which will give benefits for the added complexity. If you need to create both the feature files AND the code, it's just complexity with little benefits. But frameworks like or are hiding this complexity and remove the code layer entirely. Which, in my view, this is where you need to be in 2023, particularly for API testing.

  • REST Assured

    Java DSL for easy testing of REST services

  • InfluxDB

    Collect and Analyze Billions of Data Points in Real Time. Manage all types of time series data in a single, purpose-built database. Run at any scale in any environment in the cloud, on-premises, or at the edge.

  • WireMock

    A tool for mocking HTTP services

    Project mention: r/programming should shut down from 12th to 14th June | /r/programming | 2023-06-06 is one such tool.

  • Java Faker

    Brings the popular ruby faker gem to Java

    Project mention: Built a library to help generate test pojos with relevant but random data. I’d love some feedback. | /r/java | 2023-04-30
  • 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: Please recommend a good API Mocking tool | /r/node | 2023-05-16

    The open-source examples are mockoon,, etc.

  • Moco

    Easy Setup Stub Server

  • PowerMock

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

  • Awaitility

    Awaitility is a small Java DSL for synchronizing asynchronous operations

    Project mention: Relearning Java Thread Primitives | | 2023-04-11

    I’ve coded in Java since the first beta, even back then threads were at the top of my list of favorite features. Java was the first language to introduce thread support in the language itself, it was a controversial decision back then. In the past decade, every language raced to include async/await and even Java had some third-party support for that… But Java zigged instead of zagging and introduced the far superior virtual threads (project Loom). This post isn’t about that.

  • Spock

    The Enterprise-ready testing and specification framework.

    Project mention: Helidon Níma is the first Java microservices framework based on virtual threads | | 2023-08-19

    Well I care a lot that it exists. And many other people I know do as well. Just because you don't seem to like it, you shouldn't imagine everyone else is like you.

    Maybe Grails is no longer used as much (like Rails itself), but Groovy found other usages since then, like and Jenkins pipelines ( It's not going anywhere, and I see no reason for anyone to be upset about it.

  • ArchUnit

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

    Project mention: You Want Modules, Not Microservices | /r/programming | 2023-03-29

    I feel like the types of people that use ArchUnit are the types of people that misuse it anyway. Even the elevator pitch example in the project repository is of the backwards horizontal layering that leads any change to carpet bomb a project.

  • Truth

    Fluent assertions for Java and Android

  • Cucumber

    Cucumber for the JVM

  • AssertJ

    AssertJ is a library providing easy to use rich typed assertions

    Project mention: Announcing lets_expect - Clean tests in Rust. | /r/rust | 2023-01-10

    Maybe not the feedback you want, but would you consider developing something that looks like plain old (and frankly beautiful) AssertJ?

  • Jailer

    Database Subsetting and Relational Data Browsing Tool.

    Project mention: Why people care about PostGIS and Postgres | | 2023-09-13

    I also found DBeaver to be a huge improvement over tools I used earlier.

    Recently I discovered Jailer which makes it very easy to navigate complex relational structures:

  • Hamcrest

    Java (and original) version of Hamcrest

  • TestNG

    TestNG testing framework

  • Selenide

    Concise UI Tests with Java!

    Project mention: Beginner’s Guide To Test Automation With Java (TestUI) | | 2023-01-19

    TestUI combines 2 different paradigm test automation frameworks, i.e., mobile (Appium) and desktop (Selenide), into one neat framework. In our opinion, it’s a great framework that offers vast functionality with easy-to-learn syntax, not to mention full access to Selenide methods in case something tricky needs to be done.

  • PIT

    State of the art mutation testing system for the JVM

  • Onboard AI

    Learn any GitHub repo in 59 seconds. Onboard AI learns any GitHub repo in minutes and lets you chat with it to locate functionality, understand different parts, and generate new code. Use it for free at

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 2023-09-13.

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 27,833
2 Mockito 14,220
3 JUnit 8,469
4 Apache JMeter 7,395
5 Testcontainers 7,353
6 Karate 7,344
7 REST Assured 6,521
8 WireMock 5,732
9 Java Faker 4,322
10 MockServer 4,266
11 Moco 4,233
12 PowerMock 4,071
13 Awaitility 3,543
14 Spock 3,420
15 ArchUnit 2,837
16 Truth 2,650
17 Cucumber 2,609
18 AssertJ 2,420
19 Jailer 2,260
20 Hamcrest 2,065
21 TestNG 1,889
22 Selenide 1,737
23 PIT 1,553
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.