JUnit logo
A programmer-oriented testing framework for Java
374
200
+ 1
0

What is JUnit?

JUnit is a simple framework to write repeatable tests. It is an instance of the xUnit architecture for unit testing frameworks.
JUnit is a tool in the Testing Frameworks category of a tech stack.
JUnit is an open source tool with 7.6K GitHub stars and 2.8K GitHub forks. Here’s a link to JUnit's open source repository on GitHub

Who uses JUnit?

Companies
109 companies reportedly use JUnit in their tech stacks, including Intuit, Starter Inc., and Bitbar.

Developers
237 developers on StackShare have stated that they use JUnit.

JUnit Integrations

Java, Karate DSL, Robolectric, ScalaTest, and Experitest are some of the popular tools that integrate with JUnit. Here's a list of all 5 tools that integrate with JUnit.

Why developers like JUnit?

Here’s a list of reasons why companies and developers use JUnit
Top Reasons
Be the first to leave a pro
JUnit Reviews

Here are some stack decisions, common use cases and reviews by companies and developers who chose JUnit in their tech stack.

Jack Graves
Jack Graves
Head of Product Development at Automation Consultants · | 3 upvotes · 6.7K views
atAutomation ConsultantsAutomation Consultants
Mocha
Mocha
Apache JMeter
Apache JMeter
Jest
Jest
JUnit
JUnit

We use JUnit and Jest to perform the bulk of our automated test scenarios, with additional work with Apache JMeter for performance testing - for example, the Atlassian Data Center compliance testing is performed with JMeter. Jest provides testing for the React interfaces, which make up the backend of our App offerings. JUnit is used for Unit Testing our Server-based Apps. Mocha is another tool we use.

See more
Joshua Dean Küpper
Joshua Dean Küpper
CEO at Scrayos UG (haftungsbeschränkt) · | 1 upvotes · 1.5K views
atScrayos UG (haftungsbeschränkt)Scrayos UG (haftungsbeschränkt)
JUnit
JUnit

We use JUnit for our Java Unit and Integration tests in Version 5. Combined with @JMockit2 and @truth (from Google) we perform all kinds of tests on our minecraft, standalone and microservice architecture.

We prefer JUnit over @TestNG because of the bigger community, better support and the generally more agile development. JUnit integrates nicely with most software, while TestNG support is a little more limited.

See more

JUnit Alternatives & Comparisons

What are some alternatives to JUnit?
NUnit
An evolving, open source framework designed for writing and running tests in Microsoft .NET programming languages.It is an aspect of test-driven development , which is part of a larger software design paradigm known as Extreme Programming
TestNG
It is a testing framework designed to simplify a broad range of testing needs, it covers all categories of tests: unit, functional, end-to-end, integration, etc.Run your tests in arbitrarily big thread pools with various policies available (all methods in their own thread, one thread per test class, etc.
Mockito
It is a mocking framework that tastes really good. It lets you write beautiful tests with a clean & simple API. It doesn’t give you hangover because the tests are very readable and they produce clean verification errors.
Arquillian
It is an integration and functional testing platform that can be used for Java middleware testing. With the main goal of making integration (and functional) tests as simple to write as unit tests, it brings the tests to the runtime environment, freeing developers from managing the runtime from within the test.
Cucumber
Cucumber is a tool that supports Behaviour-Driven Development (BDD) - a software development process that aims to enhance software quality and reduce maintenance costs.
See all alternatives

JUnit's Stats

JUnit's Followers
200 developers follow JUnit to keep up with related blogs and decisions.
Mehmet Ali Kipcak
Xueying Gu
Bengt Brodersen
Lukas Karsten
Jose Herrerías
Jean-Claude Arbaut
Saravanan Baskaran
Mohamma76685757
Demys Lima
Himansu Sekhar