Skip to content
/ testcoe Public

A small and simple C++ Google Test wrapper for better visual test progress and crash handling

License

Notifications You must be signed in to change notification settings

nircoe/testcoe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

testcoe

Visual test progress and crash handling for Google Test.

Windows Linux macOS

What is testcoe?

testcoe enhances Google Test with real-time grid visualization and crash reporting:

Running 12 tests... Completed: 8/12 (P: 6, F: 2)
P - Passed, F - Failed, R - Running, . - Not run yet

MathTests    PPF.. (3/5)
StringTests  PRPP. (4/5)
VectorTests  ....  (0/2)

When tests crash, you get detailed stack traces instead of silent failures.

Dependencies

Quick Start

1. Add to your project (CMake)

include(FetchContent)
FetchContent_Declare(
    testcoe
    GIT_REPOSITORY https://github.com/nircoe/testcoe.git
    GIT_TAG v0.1.0
)
FetchContent_MakeAvailable(testcoe)

target_link_libraries(your_test_executable PRIVATE testcoe)

2. Use in your tests

#include <testcoe.hpp>

int main(int argc, char** argv) {
    testcoe::init(&argc, argv);
    return testcoe::run();
}

That's it! Run your tests and see the enhanced output.

Features

  • 🎯 Grid Visualization - See all tests progress in real-time
  • 🛡️ Crash Handling - Get stack traces when tests crash
  • 🎨 Color Support - Automatic terminal detection
  • 🔍 Test Filtering - Run specific tests or suites
  • 📦 Zero Config - Works out of the box with Google Test

Examples

See the examples/ directory for demonstrations:

Requirements

  • C++17 or later
  • CMake 3.14+
  • Google Test (automatically included)

API Reference

// Initialize testcoe
testcoe::init(&argc, argv);

// Run all tests
testcoe::run();

// Run specific suite
testcoe::run_suite("MathTests");

// Run specific test
testcoe::run_test("MathTests", "Addition");

Documentation

License

MIT License - see LICENSE file for details.

About

A small and simple C++ Google Test wrapper for better visual test progress and crash handling

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Packages

No packages published