Boost logo

Boost Users :

From: David Demelier (markand_at_[hidden])
Date: 2019-11-26 16:29:23


Le 22/11/2019 à 22:28, Mateusz Loskot via Boost-users a écrit :
> Macros in testing and benchmarking frameworks are kosher,
> in fact, they can be very helpul to organize and structure large
> amount of tests that in turn makes it easier to search and browse
> through the code. I can't imagine how any of the modern IDE's will
> support the string-driven syntax.

Not sure to understand how macros help organizing code but well.

> As a long time maintainer of SOCI library, I'm no stranger to
> the syntax-first library development [1], still, I find the UT's
> string-based test cases approach as an interesting curiosity
> with very little practical value. (It falls into similar drawer
> as the (over)use of emoji in commit messages on GitHub :)).

Catch2 and some Javascript frameworks use strings based tests too. I
don't see any issues with that. Regarding emojis, this is clearly a
mainstream hype unfortunately [0] [1]

> I just hope Boost will not allow to adopt the UT
> as a test framework of choice of any/too many of its libraries.

I'd like to know what are the benefits of this kind of comments that are
very subjective. But it's not the first time I see this on this mailing
list. Refrain yourself next time, not liking a library is opinion based
but trying to demotivate people is irrelevant and not productive.

[0]: https://github.com/nlohmann/json/commits/develop
[1]: https://rocket.rs/v0.4/guide/getting-started

-- 
David

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net