FREEDOM251

Freedom251 › Compare

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.

ExUnit

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

GoogleTest

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 GoogleTest

The facts

ExUnitGoogleTest
Free planYesYes
Open sourceNot publishedNot published
Runs onLinuxLinux, Mac, Windows
Lowest paid planFree or on requestFree or on request
Plans published11
MakerNot publishedNot published
Websitehexdocs.pmgoogle.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