All Projects → heapwolf → cxx-tap

heapwolf / cxx-tap

Licence: MIT license
Test Anything Protocol (TAP) Producer for C++

Programming Languages

C++
36643 projects - #6 most used programming language

Projects that are alternatives of or similar to cxx-tap

Strikt
An assertion library for Kotlin
Stars: ✭ 310 (+1309.09%)
Mutual labels:  test, assertions
Should.js
BDD style assertions for node.js -- test framework agnostic
Stars: ✭ 1,908 (+8572.73%)
Mutual labels:  test, assertions
Enzyme
JavaScript Testing utilities for React
Stars: ✭ 19,781 (+89813.64%)
Mutual labels:  test, assertions
Kotest
Powerful, elegant and flexible test framework for Kotlin with additional assertions, property testing and data driven testing
Stars: ✭ 3,234 (+14600%)
Mutual labels:  test, assertions
Zora
Lightest, yet Fastest Javascript test runner for nodejs and browsers
Stars: ✭ 356 (+1518.18%)
Mutual labels:  tap, test
Should Enzyme
Useful functions for testing React Components with Enzyme.
Stars: ✭ 41 (+86.36%)
Mutual labels:  test, assertions
Assert
A collection of convenient assertions for Swift testing
Stars: ✭ 69 (+213.64%)
Mutual labels:  test, assertions
Expekt
BDD assertion library for Kotlin
Stars: ✭ 163 (+640.91%)
Mutual labels:  test, assertions
Fishtape
100% pure-Fish test runner.
Stars: ✭ 283 (+1186.36%)
Mutual labels:  tap, test
node-bogota
🚀 Run tape tests concurrently with tap-spec output
Stars: ✭ 15 (-31.82%)
Mutual labels:  tap, test
Zap
A streamable structured interface for real time reporting of developer tools.
Stars: ✭ 114 (+418.18%)
Mutual labels:  tap, test
Mini Test.c
Minimalistic portable test runner for C projects
Stars: ✭ 12 (-45.45%)
Mutual labels:  tap, test
Zunit
A powerful testing framework for ZSH projects
Stars: ✭ 140 (+536.36%)
Mutual labels:  tap, assertions
is-match
Create a matching function from a glob pattern, regex, string, array or function.
Stars: ✭ 20 (-9.09%)
Mutual labels:  test
generator-react-jest-tests
A React Jest test generator. Generates snapshot tests for React components.
Stars: ✭ 34 (+54.55%)
Mutual labels:  test
use-double-tap
React hook for handling double tap on mobile devices
Stars: ✭ 18 (-18.18%)
Mutual labels:  tap
rust-claim
Assertion macros toolkit for Rust
Stars: ✭ 53 (+140.91%)
Mutual labels:  assertions
revl
Helps to benchmark code for Autodesk Maya.
Stars: ✭ 14 (-36.36%)
Mutual labels:  test
CombineExpectations
Utilities for tests that wait for Combine publishers
Stars: ✭ 204 (+827.27%)
Mutual labels:  test
VisualTAF
ExlJS - Super easy to use, Excel and JS driven tool, encapsulating best practices in test automation development.
Stars: ✭ 21 (-4.55%)
Mutual labels:  test

SYNOPSIS

Test Anything Protocol for C++ based on the TAP 13 Spec.

USAGE

This module is designed to work with the datcxx build tool. To add this module to your project us the following command...

build add heapwolf/cxx-tap

TEST

build test

EXAMPLE

CODE

#include "deps/heapwolf/cxx-tap/index.hxx"

int main () {
  TAP::Test t;

  t.test("Bazz", [&](auto a) {
    a->ok(true, "true is true");

    a->test("Quxx", [&] (auto b) {
      b->ok(true, "nested");
      b->end();
      a->end();
    });
  });

  t.test("Foo", [&](auto t) {

    float a = 2.23;
    int b = 2;

    t->equal(a, b, "a float is not an int");

    t->ok(false, "true is also true");
    t->end(); // t is not automatically called for children.
  });

  // t.end(); // is automatically called by t's destructor.
}

OUTPUT

TAP version 13
ok 1 - true is true
ok 2 - nested
not ok 3 - a float is not an int
  ---
  operator: equal
  expected: 2
  actual:   2.23
  ...
not ok 4 - true is also true
  ---
  operator: ok
  expected: false
  actual:   true
  ...
1..3
# tests 3
# pass  2
# fail  1
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].