Skip to main content

:clipboard: Collection of awesome C++ resources for testing,

9
GitHub Stars
39
Curated Resources
10
Categories
23 hours ago
Last Refreshed
Code CoverageLoad TestingMemory ManagementMock and StubMutation TestingPerformance TestingProperty Based TestingStatic ChecksTesting FrameworksResources

Use this list with your AI agent

Add the Context Awesome MCP server to Claude, Cursor, or any MCP client, then ask:

"Show me related resources from awesome-cpp-testing"

Installation instructions →

What's inside

Testing Frameworks

  • Approval Tests for C++

    Native ApprovalTests for C++ on Linux, Mac and Windows.

  • autocheck

    QuickCheck and SmallCheck clones for C++.

  • Bandit

    A header-only framework for C++11 that wants to make working with unit tests a pleasant experience.

  • Boost.Test

    Boost testing framework.

  • Catch

    A modern, C++-native, header-only, framework for unit-tests, TDD and BDD.

  • CppUTest

    is a C /C++ based unit xUnit test framework for unit testing and for test-driving your code.

Resources

Code Coverage

  • Bullseye Coverage

    is a code analyzer for C and C++ that evaluates how much of your source code was tested.

  • FrogLogic Coco

    Coco tests code coverage for C, C++, C# and Tcl code.

  • Intel C++ Compiler 15.0

    displays dynamic execution counts for each basic block of the application, provides differential coverage data, and presents code coverage information visually with a customizable coloring scheme.

  • Testwell CTC++

    is a code coverage tool for C, C+, Java, and C#.

Static Checks

  • Cppcheck

    is a popular, open-source, free, cross-platform static code analysis tool dedicated to C and C++.

  • CppDepend

    is a commercial static code analysis tool for C++.

  • Klocwork

    is a leader when it comes to C++ static code analysis tools.

  • Parasoft C/C++test

    targeting enterprise and embedded applications, includes a static code analysis tool (these industries are often required to obtain static code analysis tools for security reasons), as well as dynamic code analysis, unit test, code coverage, runtime analysis, and other functions.

  • PC-lint Plus

    is a comprehensive static analysis solution for C and C++

Mock and Stub

  • CppUTest

    unit testing and mocking framework for C/C++.

  • mockcpp

    a jmock-like generic C/C++ Mock Framework, which doesn't use complex template technique which will result in very heavy compiling overhead.

Memory Management

  • Deleaker

    is an extension for all major IDEs and a standalone application for memory leak detection - memory, GDI, and handles so far.

  • Dmalloc

    debug malloc library.

  • Memcheck by Valgrind

    is an instrumentation framework for building dynamic analysis tools.

  • MemPro

    is a C++ memory profiler.

  • sanitizers

    is AddressSanitizer, MemorySanitizer, ThreadSanitizer, LeakSanitizer, and more.

Mutation Testing

  • Dextool

    a framework for writing plugins using libclang. The main focus is tools for testing and static analysis.

  • MuCPP

    is a mutation testing tool for the C++ programming language.

  • Mutate++

    C++ Mutation Test Environment.

  • Mut-tools

    mutation testing for C/C++ programs.

Load Testing

  • Parasoft Jtest

    provides a suite of testing tools for a variety of purposes like load testing, security testing, and more.

Showing a sample of 39 resources. View the full list on GitHub →