Need advice about which tool to choose?Ask the StackShare community!

Google Test

14
15
+ 1
0
JUnit

2.6K
509
+ 1
0
Add tool

JUnit vs Google Test: What are the differences?

What is JUnit? A programmer-oriented testing framework for Java. JUnit is a simple framework to write repeatable tests. It is an instance of the xUnit architecture for unit testing frameworks.

What is Google Test? Google Testing and Mocking Framework (By Google). It is a unit testing library for the C++ programming language, based on the xUnit architecture. The library is released under the BSD 3-clause license. It can be compiled for a variety of POSIX and Windows platforms, allowing unit-testing of C sources as well as C++ with minimal source modification.

JUnit and Google Test belong to "Testing Frameworks" category of the tech stack.

JUnit and Google Test are both open source tools. Google Test with 15.9K GitHub stars and 6.26K forks on GitHub appears to be more popular than JUnit with 7.9K GitHub stars and 3K GitHub forks.

According to the StackShare community, JUnit has a broader approval, being mentioned in 223 company stacks & 443 developers stacks; compared to Google Test, which is listed in 4 company stacks and 5 developer stacks.

Get Advice from developers at your company using StackShare Enterprise. Sign up for StackShare Enterprise.
Learn More

What is Google Test?

It is a unit testing library for the C++ programming language, based on the xUnit architecture. The library is released under the BSD 3-clause license. It can be compiled for a variety of POSIX and Windows platforms, allowing unit-testing of C sources as well as C++ with minimal source modification.

What is JUnit?

JUnit is a simple framework to write repeatable tests. It is an instance of the xUnit architecture for unit testing frameworks.

Need advice about which tool to choose?Ask the StackShare community!

Jobs that mention Google Test and JUnit as a desired skillset
CBRE
United Kingdom of Great Britain and Northern Ireland England London
CBRE
United Kingdom of Great Britain and Northern Ireland England London
CBRE
Poland Mazowieckie Warsaw
What companies use Google Test?
What companies use JUnit?
See which teams inside your own company are using Google Test or JUnit.
Sign up for StackShare EnterpriseLearn More

Sign up to get full access to all the companiesMake informed product decisions

What tools integrate with Google Test?
What tools integrate with JUnit?

Sign up to get full access to all the tool integrationsMake informed product decisions

What are some alternatives to Google Test and JUnit?
pytest
A framework makes it easy to write small tests, yet scales to support complex functional testing for applications and libraries. It is a mature full-featured Python testing tool.
RSpec
Behaviour Driven Development for Ruby. Making TDD Productive and Fun.
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.
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.
xUnit
It is a free, open source, community-focused unit testing tool for the .NET Framework. It is the latest technology for unit testing C#, F#, VB.NET and other .NET languages. It works with ReSharper, CodeRush, TestDriven.NET and Xamarin.
See all alternatives