QUnit is a free JavaScript testing framework that began in the jQuery project.
Best Unit Testing Frameworks in 2026
When you need to test small pieces of code, compare frameworks by the languages they support and the ways they let you describe expected behavior. Built-in mocks, parameterized cases, property-based checks, and snapshot testing can each matter for different testing needs; parallel execution is another capability to review. Consider the free plan and paid-from price alongside those features. Kotest, NUnit, and…
NUnit is a unit-testing framework for .NET languages, with support listed for C#, VB.NET, F#, and C++.
Kotest is a free, multiplatform testing framework for Kotlin projects, combining assertions, property testing, and expressive ways to define tests.
- 4

PHPUnit
PHPUnit is a testing framework for PHP, with a command-line runner for running tests and selecting suites.
Free planLinuxmacOSSelf-hostedWindows6.6Free plan - 5
ScalaCheck
ScalaCheck is a free Scala library for automated property-based testing of Scala and Java programs.
Free planLinuxmacOSWindows6.6Free plan - 6

Vitest
Vitest is a testing framework powered by Vite, though it can also run without Vite.
Free planWebLinuxmacOSWindows6.6Free plan - 7

Boost.Test
Boost.Test is a free C++ unit-testing library for simple program testing, full unit testing and program execution monitoring.
Free planLinuxWindows6.5Free plan - 8
Jasmine
Jasmine is an open-source framework for testing JavaScript code that runs in browsers and Node.js.
Free planWebLinuxmacOSWindows6.5Free plan - 9

Pest
Pest is a PHP testing framework for developers and AI agents, available free as a Composer development dependency in a PHP project.
Free planLinuxmacOSSelf-hostedWindows6.5Free plan - 10
ScalaTest
ScalaTest is a testing tool for Scala, Scala.js, Scala Native, Dotty (Scala 3), and Java code.
Free planWebLinuxmacOSSelf-hosted6.5Free plan - 11
CppUTest
CppUTest is a free C/C++ xUnit framework for unit testing and test-driven development, often used in embedded systems.
Free planLinuxmacOSSelf-hostedWindows6.4Free plan - 12

Rust libtest
Rust libtest is the built-in harness for building and running tests for a Rust crate.
Free planLinuxmacOSWindows6.4Free plan - 13
FsCheck
FsCheck is a free library for automatically checking properties of .NET programs against randomly generated inputs.
Free planLinuxmacOSWindows6.3Free plan - 14

Hspec
Hspec is a free testing framework for Haskell, distributed as a Cabal source package on Hackage under the MIT license.
Free planLinux6.3Free plan - 15
Minitest
Minitest is a free Ruby toolkit for test-driven development, behavior-driven development, and benchmarking.
Free planLinuxWindows6.3Free plan - 16

Mocha
Mocha is a free, open-source JavaScript test framework that runs in Node.js and browsers.
Free planWebLinux6.3Free plan - 17

Mockito
Mockito is a free Java mocking framework for writing unit tests.
Free planAndroidLinuxSelf-hosted6.3Free plan - 18

Go testing
Go testing is the test framework and tooling built into Go, an open-source programming language supported by Google for building simple, secure, scalable systems.
Free planLinuxmacOSWindows6.2Free plan - 196.2Free plan
- 20

unittest
unittest is Python’s unit testing framework for automating tests and organizing their setup and execution.
Free planLinuxmacOSWindows6.2Free plan - 21

xUnit.net
xUnit.net is a free, open-source unit testing tool for C#, F#, and Visual Basic.
Free planLinuxmacOSSelf-hostedWindows6.2Free plan - 22
6.1Free plan - 236.1Free plan
- 24

MockK
AndroidLinuxmacOSWindows6.1 - 25

MSTest
MSTest is a free, open-source framework for writing and running tests for .NET applications.
Free planLinuxmacOSWindows6.1Free plan

