Registry / testing / approval-tests-cpp

approval-tests-cpp

JSON →
library10.13.0vcpkgunverified

Approval Tests allow you to verify a chunk of output (such as a file) in one operation as opposed to writing test assertions for each element.

vcpkg install approval-tests-cpp
INSTALL
IMPORT
SIG · APPROVAL-TESTS-CPP
A
approval-tests-cpp
testingcppv10.13.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

ApprovalTests.hpp
#include <ApprovalTests.hpp>

Verify a string using Approval Tests with Catch2

#include "ApprovalTests.hpp" #include <catch2/catch.hpp> TEST_CASE("HelloWorld") { ApprovalTests::Approvals::verify("Hello, world!"); }
Debug
Known issues
gotchaApproval Tests is header-only; no linking needed.
fix
Just include the header and use with a test framework.
affects: *
Upgrade
Version history
10.13.0latest on vcpkg
Audit
Dependencies

No dependency data recorded yet.

Agent activity
36 hits · last 30 days
node
30
OpenAI (training)
1
Resources

No resource links recorded.

approval-tests-cpp — pip install approval-tests-cpp · libregistry