Java Testing

Open-source Java projects categorized as Testing

Top 23 Java Testing Projects

  • Selenium WebDriver

    A browser automation framework and ecosystem.

    Latest mention: Selenium Chromedriver permission error | reddit.com/r/learnpython | 2021-01-22

    This exception occurs exactly in one condition and that's if there is a permission denied error. So, if you can run the file normally without permissions issues, something might be wrong with how Python is being run.

  • Mockito

    Most popular Mocking framework for unit tests written in Java

    Latest mention: Prefer Fakes Over Mocks | dev.to | 2020-10-13

    According to the original definitions introduced by Gerard Meszaros, a mock is a very specific type of substitutes which is used to verify interactions between the system under test and its dependencies. Nowadays, however, the distinction has become a bit blurry, as this term is commonly used to refer to a broader class of objects created with frameworks such as Moq, Mockito, Jest, and others.

  • JUnit

    A programmer-oriented testing framework for Java.

  • REST Assured

    Java DSL for easy testing of REST services

  • Apache JMeter

    Apache JMeter

  • 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.

  • Karate

    Test Automation Made Simple

    Latest mention: How to work with Karate Config.js to Switch Env in Karate API Testing Automation? | dev.to | 2021-01-02

    ✅ Source - https://github.com/intuit/karate/

  • WireMock

    A tool for mocking HTTP services

  • Moco

    Easy Setup Stub Server

  • PowerMock

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

  • Cucumber

    Cucumber monorepo - building blocks for Cucumber in various languages

  • 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).

  • Spock

    The Enterprise-ready testing and specification framework.

  • Awaitility

    Awaitility is a small Java DSL for synchronizing asynchronous operations

    Latest mention: Integrando TestContainers en el contexto de Spring en nuestros tests | dev.to | 2020-11-22

    Nota: para los que no la conozcáis, await es un operador de awaitility, muy útil para validación de resultados en procesos asíncronos.

  • Java Faker

    Brings the popular ruby faker gem to Java

    Latest mention: Test Data Factory: Why and How to Use | dev.to | 2021-01-04

    For that I will introduce you JavaFaker, a is a library that can generate fake random data every time it’s called. For example: if you generate a name all the names generated will be different.

  • Zalenium

    A flexible and scalable container based Selenium Grid with video recording, live preview, basic auth & dashboard.

  • Cucumber

    Cucumber for the JVM

  • Truth

    Fluent assertions for Java and Android

  • AssertJ

    AssertJ is a library providing easy to use rich typed assertions

  • Hamcrest

    Java (and original) version of Hamcrest

  • TestNG

    TestNG testing framework

  • ArchUnit

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

    Latest mention: ArchUnit | dev.to | 2021-01-20

    JUnit 4

  • Galen

    Layout and functional testing framework for websites

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 2021-01-22.

Index

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

Project Stars
1 Selenium WebDriver 19,652
2 Mockito 11,454
3 JUnit 8,045
4 REST Assured 5,143
5 Apache JMeter 4,937
6 TestContainers 4,532
7 Karate 4,368
8 WireMock 4,260
9 Moco 3,538
10 PowerMock 3,398
11 Cucumber 3,123
12 MockServer 3,041
13 Spock 2,806
14 Awaitility 2,441
15 Java Faker 2,368
16 Zalenium 2,313
17 Cucumber 2,244
18 Truth 2,186
19 AssertJ 1,890
20 Hamcrest 1,841
21 TestNG 1,578
22 ArchUnit 1,577
23 Galen 1,392