/awesome-cpp-testing

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

Awesome C++ Testing Awesome

Collection of awesome C/C++ resources for testing.

Inspired by awesome-python-testing

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#.

Load Testing

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

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.

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.

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.
  • mull - is a practical mutation testing tool for C and C++.
  • Mutate++ - C++ Mutation Test Environment.
  • Mut-tools - mutation testing for C/C++ programs.

Performance Testing

  • sltbench - C++ benchmark tool. Practical, stable and fast performance testing framework.

Property Based Testing

  • RapidCheck - is a C++ framework for property based testing inspired by QuickCheck and other similar frameworks. In property based testing, you state facts about your code that given certain precondition should always be true.

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++

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.
  • doctest - The fastest feature-rich C++11/14/17/20 single-header testing framework for unit tests and TDD.
  • Fakeit - C++ mocking made easy. A simple yet very expressive, headers only library for c++ mocking.
  • Googletest - Google Testing and Mocking Framework.
  • Mull - Practical mutation testing tool for C and C++
  • µTest - Lightweight unit testing framework mainly for C++ and also for C projects.

Resources

Books

Related

  • Awesome C++ - A curated list of awesome C++ (or C) frameworks, libraries, resources, and shiny things.
  • Awesome Modern C++ - A collection of resources on modern C++.
  • C# test automation - A comprehensive curated list of C# test automation frameworks, tools, libraries and software to help software engineers easily bootstrap test automation on C#.
  • Explore C++ on kandi - Discover & find a curated list of popular libraries, trending project kits, tutorials & learning resources on kandi.