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 β
Top 23 Java Junit Projects
-
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.
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:
-
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.
-
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.
-
-
-
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
-
-
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
-
S3Mock
A mock implementation of the AWS S3 API startable as Docker image, TestContainer, JUnit 4 rule, JUnit Jupiter extension or TestNG listener
-
-
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.
-
-
quickperf
QuickPerf is a testing library for Java to quickly evaluate and improve some performance-related properties
-
-
-
wiremock-spring-boot
WireMock Spring Boot drastically simplifies testing HTTP clients in Spring Boot & Junit 5 based integration tests.
WireMock Spring Boot (1 min)π https://github.com/wiremock/wiremock-spring-boot
-
testing-spring-boot-applications-masterclass
π Master Spring Boot Testing: From Uncertain Deployments to Production Confidence
-
-
-
-
video-recorder-java
This library allows easily record video of your UI tests by just putting couple annotations.
-
-
-
Scott Test Reporter
Never debug a test again: Detailed failure reports and hassle free assertions for Java tests - Power Asserts for Java (by dodie)
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
Java Junit discussion
Java Junit related posts
-
Important Notes on JUnit 5.12.0+ in Gradle
-
Exploring JUnit: A Model of Community, Innovation, and Sustainable Funding
-
Wednesday Links - Edition 2024-10-16
-
CS 6120: Advanced Compilers: The Self-Guided Online Course
-
Jqwik β Property-Based Testing on the JUnit Platform
-
Usando Spring Boot RestClient
-
Show HN: Unlogged (YC S22) β open-source record and replay for Java
-
A note from our sponsor - InfluxDB
www.influxdata.com | 20 May 2025
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 |