Boost logo

Boost Users :

Subject: Re: [Boost-users] [test] Is standalone use possible?
From: Adam Nielsen (a.nielsen_at_[hidden])
Date: 2017-10-02 03:24:34

> > Interesting. I don't think it will be practical for this codebase
> > though, as I'd have to rewrite all the tests. I'm using Boost.Test's
> > manual test registration (instead of the macros) because my tests all
> > inherit from a base class which provides the tests, with the child
> > classes loading different file format handlers and then running the
> > base class tests against them. It doesn't look like Catch can handle
> > this sort of thing without preprocessor hacks, so it'd probably end up
> > being a huge rewrite.
> It's pretty straightforward to refactor that design to not rely so
> heavily on Boost.Test. But if you don't want to, Google Test offers
> almost exactly the same facility. A port to that ought to be very
> straightforward for the above design.

It's not that I don't want to, it's just that I see it taking much more
time than I really want to invest. Extracting Boost.Test (if it can be
done in less than 29 MB of source files!) is definitely the easier

Google Test looks like it's also a library you need to install first,
so I'd end up in much the same place as I am now, having to worry about
installing dependencies first. I like the idea with Catch that it's
header only so you don't have to worry about any of that.

If I was writing things from scratch I'd be seriously looking at Catch


Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at