GithubHelp home page GithubHelp logo

jarthianur / testplusplus Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 6.12 MB

A modern, easy to use C++ test framework. Formerly known as simple-cpp-test-framework.

License: GNU General Public License v3.0

C++ 97.19% Batchfile 0.43% Shell 1.24% CMake 1.14%
cpp11 cpp14 cpp17 linux multithreaded-tests openmp osx parallel-tests test test-driven-development test-framework test-plus-plus testplusplus unit-testing windows

testplusplus's People

Contributors

jarthianur avatar

Stargazers

 avatar

Watchers

 avatar

testplusplus's Issues

Extern var for comparator epsilon

Is your feature request related to a problem? Please describe.
Floating point comparison epsilon is only customizable for whole compilation unit via macro.

Describe the solution you'd like
Allow to provide the epsilon with an extern variable for more fine grained customization.

Describe alternatives you've considered

Additional notes

[osx] parallel run takes too much time with clang/c++17/omp

Describe the bug
When compiling the parallel tests with clang on osx in c++17 standard and with openmp support, the parallel run takes around 230ms. This should be definitely way less than 200ms, like in all other test runs.

To Reproduce
Steps to reproduce the behavior:

  1. run the build pipeline for osx in travis-ci

Expected behavior
The test should not fail and the duration should be less than 200ms for that particular case.

System

  • OS: osx
  • Version: Apple LLVM version 10.0.1 (clang-1001.0.46.4)/Target: x86_64-apple-darwin18.5.0

Additional notes
This bug appears only for the c++17 build, not for c++11/14.
https://travis-ci.org/Jarthianur/simple-cpp-test-framework/jobs/571767442#L2440

Multi OS compatibility

Is your feature request related to a problem? Please describe.

Describe the solution you'd like
The framework should work on Windows, Linux and OSX.

Describe alternatives you've considered

Additional notes
CI should verify with all systems.

Template reporter

Is your feature request related to a problem? Please describe.

Describe the solution you'd like
It could be pretty useful to have a reporter, that accepts a template as input. This template would follow a simple syntax for inlining the report into the static part of it.

Describe alternatives you've considered

Additional notes

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.