Giter VIP home page Giter VIP logo

tst's Introduction

releases

ci status

tst

C++ testing framework.

Installation, documentation, tutorials

See WiKi.

Features

  • xUnit-like concepts

  • minimal use of preprocessor macros

  • declarative definition of test cases

  • test suites

  • parametrized test cases

  • disabled test cases

  • parallel test execution

  • tests discovery (list existing test cases)

  • run list (list of test cases to run)

  • JUnit XML report generation

  • colored console output

Why another C++ xUnit framework?

There is already a plenty of C++ testing frameworks. The most popular ones are GoogleTest, Catch2 and Boost.UT.

So why another one?

Well, the good coding exercise is not the last reason, but also the following ones which make tst different:

  • tst minimizes use of preprocessor macros. It is designed with keeping in mind the future use of std::source_location when it becomes widely supported by compilers. Then it will be possible to avoid using macros at all without much rewriting of existing tests. Right now, essentially only one small macro is required, which is SL. For the sake of justice, Boost.UT also works without macros.

  • tst does not require C++'20 yet (unlike Boost.UT). Works with C++'17 which is well supported by existing compilers.

  • tst takes in use latest C++ concepts without being limited by supporting legacy standards.

  • Simple and clean procedural approach to testing (no awkward BDD, Gherkin, etc. stuff).

  • Exception-based "assertions" (check() functions).

  • Built-in parallel test cases execution.

tst's People

Contributors

igagis avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.