Subject: Re: [boost] doctest - the lightest feature rich C++ single header testing framework - if it can enter boost and if it/boost will benefit from that
From: Paul Fultz II (pfultz2_at_[hidden])
Date: 2016-05-22 23:23:23
> On May 22, 2016, at 9:29 PM, Vinnie Falco <vinnie.falco_at_[hidden]> wrote:
> Can someone please explain what I am missing? What is the benefit of
> macros to declare functions?
So you donât have to write the `run()` function. You just declare the function and it auto-registers it. The Prove library actually can auto-register cases without using a macro, though, which is nice when you want to create parameterized test cases.
> What is my framework missing?
Well, the `expect` function canât report back the file and line number where it failed nor the expression that caused it to fail and what values was given to it. This is really nice when using something like CI.
I see no problem or disadvantage when using the macros, that they need to be avoided.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk