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. junit-framework

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

    Project mention: 7 Tips on how I Leverage AI and Still Write My Own Code | dev.to | 2025-07-01

    A while ago I learned about test driven development, this I implemented for the first time while working on an Android app at a past job, I was using JUnit. Doing this came up after we got an audit regarding implementation of best practices at work.

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

    Deploy and host your apps and databases, now with $50 credit! Sevalla is the PaaS you have been looking for! Advanced deployment pipelines, usage-based pricing, preview apps, templates, human support by developers, and much more!

    Sevalla logo
  10. JQF

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

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

  12. System Rules

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

  13. quickperf

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

  14. java-ddd-example

    ♨️ DDD in Java skeleton & examples. Course:

  15. spring-boot-testing-strategies

    Sample project demonstrating different Test Strategies that can be followed when using Spring Boot.

    Project mention: Mastering Java Backend: 17 Essential Spring Boot Resources for Developers | dev.to | 2025-06-21
  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

  • 7 Tips on how I Leverage AI and Still Write My Own Code

    1 project | dev.to | 1 Jul 2025
  • 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
  • A note from our sponsor - Sevalla
    sevalla.com | 2 Sep 2025
    Sevalla is the PaaS you have been looking for! Advanced deployment pipelines, usage-based pricing, preview apps, templates, human support by developers, and much more! 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,306
2 junit-framework 6,778
3 Truth 2,769
4 javaee7-samples 2,511
5 PIT 1,756
6 instancio 1,049
7 junit-quickcheck 969
8 JQF 708
9 jqwik 617
10 System Rules 550
11 quickperf 517
12 java-ddd-example 474
13 spring-boot-testing-strategies 429
14 LogCaptor 411
15 wiremock-spring-boot 342
16 testing-spring-boot-applications-masterclass 319
17 vscode-java-test 307
18 junit-dataprovider 247
19 java-stacksrc 245
20 video-recorder-java 221
21 unlogged-sdk 189
22 Sniffy 166
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?