• Stars
    star
    316
  • Rank 132,006 (Top 3 %)
  • Language
    C++
  • License
    Apache License 2.0
  • Created over 11 years ago
  • Updated about 1 month ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Native ApprovalTests for C++ on Linux, Mac and Windows

Approval Tests for C++

Actions Status Build Status Build Status Python tests
ConanCenter package vcpkg
Documentation Status
License Contributor Covenant

⬇️ Download the latest version (v.10.12.2) of the single header file here.

📖 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.

More Repositories

1

ApprovalTests.Net

ApprovalTest verification library for .Net
C#
569
star
2

ApprovalTests.Java

ApprovalTest verification library for Java
Java
335
star
3

ApprovalTests.Ruby

Approval Tests for Ruby
Ruby
228
star
4

ApprovalTests.Python

ApprovalTests for python
Python
146
star
5

Approvals.NodeJS

Approval Tests implementation in NodeJS
TypeScript
104
star
6

ApprovalTests.Swift

ApprovalTests for Swift, a powerful alternative to assertions
Swift
88
star
7

go-approval-tests

Go
86
star
8

ApprovalTests.Net.Json

Extends ApprovalTests to allow simple approval of complex models.
C#
27
star
9

ApprovalTests.php

PHP
25
star
10

approval_tests

Approval testing for specs and unit tests
Ruby
16
star
11

ApprovalTests.cpp.Qt

C++
15
star
12

ApprovalTests.Net.Koans

Helpful examples to learn ApprovalTests
C#
14
star
13

ApprovalTests.Dart

Approval Tests implementation in Dart
Dart
11
star
14

ApprovalTests.cpp.StarterProject

Starter project for easy learning and use of ApprovalTests.cpp
C++
11
star
15

ApprovalTests.java.Koans

Java
8
star
16

ApprovalTests.Net.Asp

Easy ways to test Asp & Aps.Mvc pages and routes
C#
8
star
17

ApprovalTests.Python.StarterProject

Starter project for getting approvaltests up and running
Python
7
star
18

ApprovalTests.Net.Wpf

Extends ApprovalTests for approval of WPF through screenshot verification.
C#
7
star
19

ApprovalTests.java.StarterProject

Sample Maven project to get started
Java
6
star
20

GroupLearningFacilitation

Printouts to help facilitate a randori/mob programming session of koans
5
star
21

ApprovalTests.js.StarterProject

Starter project to get going. Mocha/ApprovalTests
PowerShell
5
star
22

ApprovalTests.perl

ApprovalTests for Perl
Perl
5
star
23

ApprovalTests.shell

a tiny implementation of Approval Tests for the cli
Shell
5
star
24

merb_approvals

Ruby
3
star
25

ApprovalTests.Net.WinForms

Extends ApprovalTests for approval of Windows Forms through screenshot verification.
C#
3
star
26

Approvals.Net.WebApi

C#
3
star
27

ApprovalTests.cpp.Qt.StarterProject

C++
3
star
28

Approvals.Net.Excel

C#
2
star
29

ApprovalTests.Net.StatePrinter

Extends ApprovalTests to allow simple approval of complex models using StatePrinter.
C#
2
star
30

ApprovalTests.Net.StarterProject

Starter Vs2017 project with MsTest & ApprovalTests
C#
2
star
31

ApprovalTests.TypeScript.Jest.StarterProject

TypeScript
2
star
32

Approvaltests.Kotlin.StarterProject

Kotlin
2
star
33

ApprovalTests.java.StarterProject.gradle

Clone and Go
Java
2
star
34

ApprovalTests.Objective-C

ApprovalTest verification library for Objective-C
Objective-C
2
star
35

ApprovalTests.Go.StarterProject

Go
2
star
36

ApprovalTests.Net.Xunit

Simplifies xUnit support in ApprovalTests
C#
2
star
37

ApprovalTests.Net.EntityFramework

Extends ApprovalTests to allow approval of EntityFramework Queries
C#
2
star
38

ApprovalTests.plugins.intellij

IntelliJ Plugin for ApprovalTests.Java
Kotlin
2
star
39

Approvaltests.Dart.StarterProject

Starter Project for Approval Tests implementation in Dart
Dart
2
star
40

Approvaltests.Elixir

Elixir
2
star
41

ApprovalTests.cpp.StarterProject.GoogleTests

VS2017 GoogleTest starter project
C++
1
star
42

ApprovalTests.LabVIEW.StarterProject

LabVIEW
1
star
43

ApprovalTests.Dart.Flutter

Dart
1
star
44

ApprovalTests.Net.NHibernate

C#
1
star
45

PackageSettings.java

Package level settings for java
Java
1
star
46

ApprovalTests.pharo.StarterProject

Smalltalk
1
star
47

ApprovalTests.Documentation

ApprovalTests.Documentation
1
star
48

ApprovalTests.Net.NServiceBus

Adds ApprovalTests support to NServiceBus
C#
1
star
49

notes

1
star
50

ApprovalTests.cpp.StarterProject.VisualStudio

1
star
51

ApprovalTests.Scala.StarterProject

Scala
1
star
52

.github

1
star
53

EmptyFiles.Python

Python
1
star
54

ApprovalTests.Swift.StarterProject.MacOs

Swift
1
star
55

ApprovalTests.Net.Rdlc

C#
1
star
56

ApprovalTests.Groovy.StarterProject

Groovy
1
star
57

go-approval-tests-starter-project

clone and go for golang
PowerShell
1
star
58

ApprovalTests.net.StarterProject.core

C#
1
star
59

ApprovalTests.GlamorousToolkit.StarterProject

Smalltalk
1
star
60

ApprovalTests.Ruby.starterproject

Ruby
1
star
61

ApprovalTests.LabVIEW

LabVIEW
1
star
62

ApprovalTests.Net.Aspose

Extends ApprovalTests to allow approval of documents via Aspose.
C#
1
star
63

ApprovalTests.Net.AppConfig

C#
1
star
64

ApprovalTests.Angular.Jest.starterproject

TypeScript
1
star
65

ApprovalTests.lua

Approvals for lua
Lua
1
star
66

approvals.github.io

SCSS
1
star