{"id":61972,"library":"catch-classic","title":"Catch Classic","description":"A modern, header-only test framework for unit tests This is specifically the legacy 1.x branch provided for compatibility with older compilers.","status":"active","version":"1.12.2","language":"cpp","source_language":null,"source_url":null,"tags":["testing","header-only","unit-test","legacy"],"install":[{"cmd":"vcpkg install catch-classic","lang":"bash","label":"vcpkg"},{"cmd":"# CMakeLists.txt\nfind_package(catch_classic CONFIG REQUIRED)\ntarget_link_libraries(main PRIVATE Catch::Catch)","lang":"cmake","label":"CMake"}],"dependencies":[],"imports":[{"symbol":"catch.hpp","correct":"#include <catch.hpp>"}],"quickstart":{"code":"#define CATCH_CONFIG_MAIN\n#include <catch.hpp>\n\nTEST_CASE(\"addition works\", \"[math]\") {\n    REQUIRE(1 + 1 == 2);\n}","lang":"cpp","description":"Define a simple test case using Catch Classic"},"warnings":[{"fix":"Use catch2 instead of catch-classic in vcpkg.","message":"This is the legacy 1.x branch; prefer Catch2 for new projects.","severity":"gotcha","affected_versions":">=1.12.2"}],"env_vars":null,"search_vec":"'1':18 'branch':20 'catch':1 'classic':2 'compat':23 'compil':26 'framework':9 'header':6,29 'header-on':5,28 'legaci':17,34 'modern':4 'older':25 'provid':21 'specif':15 'test':8,12,27,33 'unit':11,32 'unit-test':31 'x':19","created_at":"2026-06-17T05:12:28.394984+00:00","updated_at":"2026-06-17T05:12:28.394984+00:00","problems":[],"ecosystem":"vcpkg","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":null,"github":null,"docs":null,"changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["testing"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-17","next_check":"2026-12-14","install_tag":null}}