ApprovalTests.cpp
latest

Getting Started

  • Overview of Approval Tests
  • ApprovalTesting (the concept)
  • The Path to Approval Testing
  • Tutorial
  • Setup Options
  • Getting Started - Creating your main()
  • Approving Results

Test Frameworks

  • Using Approval Tests With Boost.Test
  • Using Approval Tests With Catch
  • Using Approval Tests With CppUTest
  • Using Approval Tests With doctest
  • Using Approval Tests With Google Tests
  • Using Approval Tests With [Boost].UT
  • Supporting a new test framework

Writing Tests

  • Testing Single Objects
  • Testing Containers
  • Testing Combinations
  • Testing Exceptions
  • String conversions
  • Tips for Designing Strings

Customising Behaviour

  • Options
  • Disposable Objects
  • Reporters
  • Custom Comparators
  • Writers
  • Namers
  • Scrubbers
  • Configuring Approval Tests
  • All Customizations of Approval Tests

Common Challenges

  • Multiple output files per test

How-to Guides

  • How to Test the Contents of a Container
  • How to Test a Variety of Values for One Input
  • How to Scrub Non-Deterministic Output
  • How to Use the Fmt Library To Print Objects
  • How to Use A Custom Reporter
  • How to Select a Reporter with an Environment Variable
  • How to Submit a New Reporter to ApprovalTests
  • How to Toggle Enabling or Disabling of Deprecated Code

Build Systems

  • CMake Integration
  • Conan Integration
  • Vcpkg Integration
  • Build Machines and Continuous Integration servers

Extras

  • Features
  • Why We Are Converting To Options
  • Frequently Asked Questions
  • Glossary
  • Utilities
  • Videos

Troubleshooting

  • Troubleshooting
  • Troubleshooting Misconfigured Build
  • Troubleshooting Misconfigured Main

Developing ApprovalTests.cpp

  • Contributing to ApprovalTests.cpp
  • Coding Patterns
  • Maintaining the Docs
  • Building the Docs

C++ Reference

  • Approving Objects
  • Core Classes
  • Scrubber Functions
ApprovalTests.cpp
  • Testing Containers

Testing Containers

There are two scenarios:

  • How to Test the Contents of a Container.

  • How to Test a Variety of Values for One Input.

Previous Next

© Copyright 2020, Llewellyn Falco, Clare Macrae. Revision a800afdf.

Built with Sphinx using a theme provided by Read the Docs.