Java Junit

Open-source Java projects categorized as Junit

Top 23 Java Junit Projects

  1. 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: One Container to Rule Them All - Until It Doesn’t | dev.to | 2025-03-11

    There are a handful of ways to start Testcontainers, including JUnit4 annotations, JUnit5 annotations, ApplicationContextInitializer, JDBC URL scheme, and manual container lifecycle control. Let's choose manual control for now as the least "magic" option:

  2. InfluxDB

    InfluxDB – Built for High-Performance Time Series Workloads. InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.

    InfluxDB logo
  3. junit5

    βœ… The programmer-friendly testing framework for Java and the JVM

    Project mention: Mastering Webhook & Event Testing: A Guide | dev.to | 2025-04-29

    Popular frameworks like Jest, Mocha, or JUnit provide everything you need for effective webhook unit testing, with mocking capabilities that let you simulate external dependencies.

  4. Truth

    Fluent assertions for Java and Android

  5. javaee7-samples

    Java EE 7 Samples

  6. PIT

    State of the art mutation testing system for the JVM

    Project mention: Year After Switching from Java to Go: Our Experiences | news.ycombinator.com | 2025-02-18

    I think most of the tools on the second line are not highly applicable to a Kubernetes operator, or otherwise would just use the "Cloud Native way of doing things".

    Something like JRebel would generally be a big no-no for Kubernetes, where the container image of the operator is expected be immutable (at least in terms of the code running in there). It may or may not be okay for developing an operator, but that's certainly venturing into a bit of an unknown territory.

    VM agents and JMX are usually replaced by explicitly adding Open Telemetry support and/or a Prometheus endpoint. It's certainly more boilerplate and manual work, but so many more things are explicit in Go, that's just something you've got to buy into. If you're using Rust or Typescript this could be a lot more automated but that's not the case for Go.

    Advanced profiling is probably something you'd have to give up, but I doubt a Spring shop would be deeply into profiling. The low hanging fruit is to just throw away spring and get an immediate 200%-400% performance boost.

    But the JVM is still a more mature platform. Throughput is better on the JVM than on Go and some things are very troublesome in Go (basically anything that requires code generation).

    My personal "cool tool" that I can run on the JVM but doesn't have a mature equivalent in Go is PIT[1] for mutation testing. But not everybody will be using mutation testing, just like not everybody will be using JRebel or JMX. And it doesn't mean everybody should. If you're a Spring a shop the thing you'll be probably missing most in Go would be things like Dependency Injection, Java-like ORMs, reflection magic and Spring Configuration Server.

    [1] https://github.com/hcoles/pitest

  7. instancio

    A library that creates fully populated objects for your unit tests.

  8. junit-quickcheck

    Property-based testing, JUnit-style

  9. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  10. S3Mock

    A mock implementation of the AWS S3 API startable as Docker image, TestContainer, JUnit 4 rule, JUnit Jupiter extension or TestNG listener

  11. JQF

    JQF + Zest: Coverage-guided semantic fuzzing for Java.

  12. jqwik

    Property-Based Testing on the JUnit Platform

    Project mention: Proptest: property testing in Rust | dev.to | 2024-12-27

    There's more to Proptest that I wrote in this post (but not much more), please check the documentation. But I hope this practical introduction will help you get started with the library in your projects. Also, check out similar libraries for different languages like the mentioned Hypothesis for Python or jqwik for Java.

  13. System Rules

    A collection of JUnit rules for testing code which uses java.lang.System.

  14. quickperf

    QuickPerf is a testing library for Java to quickly evaluate and improve some performance-related properties

  15. java-ddd-example

    ♨️ DDD in Java skeleton & examples. Course:

  16. LogCaptor

    🎯 LogCaptor captures log entries for unit and integration testing purposes

  17. wiremock-spring-boot

    WireMock Spring Boot drastically simplifies testing HTTP clients in Spring Boot & Junit 5 based integration tests.

    Project mention: Wednesday Links - Edition 2024-10-16 | dev.to | 2024-10-16

    WireMock Spring Boot (1 min)πŸ”Œ https://github.com/wiremock/wiremock-spring-boot

  18. testing-spring-boot-applications-masterclass

    πŸƒ Master Spring Boot Testing: From Uncertain Deployments to Production Confidence

  19. vscode-java-test

    Run and debug Java test cases in Visual Studio Code.

  20. junit-dataprovider

    A TestNG like dataprovider runner for JUnit with many additional features

  21. java-stacksrc

    Decorates stack traces with source code snippets.

  22. video-recorder-java

    This library allows easily record video of your UI tests by just putting couple annotations.

  23. unlogged-sdk

    Unlogged SDK for recording JAVA code execution

  24. Sniffy

    Sniffy - interactive profiler, testing and chaos engineering tool for Java

  25. Scott Test Reporter

    Never debug a test again: Detailed failure reports and hassle free assertions for Java tests - Power Asserts for Java (by dodie)

  26. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
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).

Java Junit discussion

Log in or Post with

Java Junit related posts

  • Important Notes on JUnit 5.12.0+ in Gradle

    1 project | dev.to | 14 Mar 2025
  • Exploring JUnit: A Model of Community, Innovation, and Sustainable Funding

    1 project | dev.to | 6 Mar 2025
  • Wednesday Links - Edition 2024-10-16

    1 project | dev.to | 16 Oct 2024
  • CS 6120: Advanced Compilers: The Self-Guided Online Course

    1 project | news.ycombinator.com | 3 Mar 2024
  • Jqwik – Property-Based Testing on the JUnit Platform

    1 project | news.ycombinator.com | 8 Feb 2024
  • Usando Spring Boot RestClient

    4 projects | dev.to | 30 Jan 2024
  • Show HN: Unlogged (YC S22) – open-source record and replay for Java

    2 projects | news.ycombinator.com | 30 Oct 2023
  • A note from our sponsor - InfluxDB
    www.influxdata.com | 20 May 2025
    InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now. Learn more β†’

Index

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

# Project Stars
1 Testcontainers 8,217
2 junit5 6,623
3 Truth 2,752
4 javaee7-samples 2,515
5 PIT 1,739
6 instancio 1,020
7 junit-quickcheck 968
8 S3Mock 915
9 JQF 699
10 jqwik 594
11 System Rules 549
12 quickperf 505
13 java-ddd-example 460
14 LogCaptor 395
15 wiremock-spring-boot 336
16 testing-spring-boot-applications-masterclass 314
17 vscode-java-test 307
18 junit-dataprovider 246
19 java-stacksrc 245
20 video-recorder-java 219
21 unlogged-sdk 183
22 Sniffy 165
23 Scott Test Reporter 138

Sponsored
InfluxDB – Built for High-Performance Time Series Workloads
InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.
www.influxdata.com

Did you know that Java is
the 8th most popular programming language
based on number of references?