Side by side
ExUnit vs GoogleTest
Both stand on unit testing frameworks. Which one you can start free with, which one lets you read the code, and what each costs once you pay.
Free plan Linux
ExUnit provides a free testing framework with Mix integration, assertions, configurable reporting, and concurrency across modules. Test cases within a module run in sequence.
Visit ExUnit Free plan LinuxMacWindows
GoogleTest offers a broad set of C++ testing and mocking capabilities, from automatic test discovery to parallel execution. Check the published compiler, platform and build-tool versions, and note the C++17 requirement for the 1.18.x branch.
Visit GoogleTestThe facts
| ExUnit | GoogleTest | |
|---|---|---|
| Free plan | Yes | Yes |
| Open source | Not published | Not published |
| Runs on | Linux | Linux, Mac, Windows |
| Lowest paid plan | Free or on request | Free or on request |
| Plans published | 1 | 1 |
| Maker | Not published | Not published |
| Website | hexdocs.pm | google.github.io |
| On unit testing frameworks | #9 of 32 | #5 of 32 |
ExUnit: what it does well
- Free.
- Mix runs matching test files from the test directory.
- Separate test modules can run concurrently.
- Formatters can report slow tests and modules.
- Configuration includes filters and timeouts.
What to know first
- Tests within each module run serially.
- The framework supports Elixir.
GoogleTest: what it does well
- Discovers and runs tests without manual registration.
- Supports fatal, non-fatal and death tests.
- Provides value- and type-parameterized tests.
- Can run tests in parallel.
- Free under the BSD-3-Clause license.
What to know first
- The 1.18.x branch requires at least C++17.
- Supports C++ only.
Alternatives to ExUnit Alternatives to GoogleTest The whole list
