MCPcopy Create free account
hub / github.com/approvals/ApprovalTests.cpp

github.com/approvals/ApprovalTests.cpp @v.10.13.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v.10.13.0 ↗ · + Follow
681 symbols 1,120 edges 281 files 62 documented · 9% updated 5mo agov.10.13.0 · 2024-03-12★ 33825 open issues

Browse by type

Functions 503 Types & classes 178
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Approval Tests for C++

Actions Status Build Status Build Status python-tests

ConanCenter package vcpkg
Documentation Status
License Contributor Covenant

:arrow_down: Download the latest version (v.10.13.0) of the single header file here.

:book: Read the Docs

Contents

What are Approval Tests?

Also known as Golden Master Tests or Snapshot Testing, Approval Tests are an alternative to asserts. If you are unfamiliar with them, we have an overview and a tutorial.

They are great for testing objects with lots of fields, or lists of objects.

Requirements

Getting Started

ToString (ostream insertion)

Often, you will need to create functions to allow objects to print their state. This is commonly done with an ostream << operator. You can find examples here: To String

What's new?

Check out the Features page or upcoming release notes to see what we've been working on lately, or browse the past release notes.

Feedback

If you have any comment or suggestion on this documentation, please email Llewellyn or Clare via the details in the Contributing page.

Core symbols most depended-on inside this repo

Shape

Method 407
Class 174
Function 96
Enum 4

Languages

C++97%
Python3%

Modules by API surface

ApprovalTests/namers/ApprovalTestNamer.cpp23 symbols
ApprovalTests/utilities/CartesianProduct.h20 symbols
ApprovalTests/integrations/doctest/DocTestApprovals.h20 symbols
tests/DocTest_Tests/GameOfLife.h18 symbols
ApprovalTests/reporters/WindowsReporters.cpp17 symbols
ApprovalTests/reporters/WindowsReporters.h16 symbols
ApprovalTests/utilities/SystemUtils.cpp15 symbols
ApprovalTests/Approvals.h15 symbols
doc/sphinx/markdown_conversion.py12 symbols
ApprovalTests/reporters/MacReporters.cpp12 symbols
ApprovalTests/core/Options.cpp12 symbols
ApprovalTests/reporters/MacReporters.h11 symbols

For agents

$ claude mcp add ApprovalTests.cpp \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page