Git Product home page Git Product logo

bugspray's People

Contributors

jan-moeller avatar

Stargazers

 avatar

Watchers

 avatar  avatar

bugspray's Issues

Fail compilation if a compiletime test is missing the EVAL_TEST_CASE macro

Is your feature request related to a problem? Please describe.
It is easy to forget to write the EVAL_TEST_CASE macro. In this case, the tests are only run at runtime, but the programmer thinks they are actually running at compile time.

Describe the solution you'd like
If a test case marked "compiletime" or "both" exists that doesn't have EVAL_TEST_CASE invoked on it, the build should fail.

Describe alternatives you've considered

Additional context

Improve reporting of unhandled exceptions

Is your feature request related to a problem? Please describe.
For the [REQUIRE|CHECK]_NOTHROW APIs, currently only the source code location of the failed check is reported.

If the exception escapes the TEST_CASE, then the only information reported is "Exception escaped test case".

Describe the solution you'd like
We should report the message, if possible. There might also be an opportunity to trace back where the exception came from by compiling in some try/catch/rethrow into SECTIONs and assertions.

CTest support

Is your feature request related to a problem? Please describe.
Currently, the only way to integrate bugspray with ctest is to run/compile the entire test executable as a single ctest test.

Describe the solution you'd like
At least for the runtime tests it should be possible to generate one ctest entry per TEST_CASE. It might further be feasible to generate ctest entries for independent compilation units. This would facilitate at least some ctest support for compile-time tests.

Describe alternatives you've considered
Don't support ctest. Not great.

Additional context
None.

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.