Catch: A modern, C++-native, header-only, framework for unit tests
1–10 of 31 posts
Re: Catch: A modern, C++-native, header-only, framework for unit tests
#2Appropriately, the first question that came to mind was, "what's the catch?" :)
Re: Catch: A modern, C++-native, header-only, framework for unit tests
#3This looks hella good, I particularly am intrigued by the nested setup/teardown system. The natural assert syntax is interesting, too, amazing what macros can accomplish. Appropriately, the first question that came to mind was, "what's the catch?" :)
I'm currently toying with writing a JSONReporter so we can use that as an additional test result output format and I agree, so far it seems to be a really well done project.
Re: Catch: A modern, C++-native, header-only, framework for unit tests
#4Re: Catch: A modern, C++-native, header-only, framework for unit tests
#5Re: Catch: A modern, C++-native, header-only, framework for unit tests
#6Re: Catch: A modern, C++-native, header-only, framework for unit tests
#7UnitTest++ was written by Noel Llopis, is small, tasteful, fast, and supports fixtures (and nested fixtures) via structs and struct inheritance.
Honest question: Why would I use Catch instead?
Re: Catch: A modern, C++-native, header-only, framework for unit tests
#8I don't really see the advantage of Catch over http://unittest-cpp.sourceforge.net/ UnitTest++ was written by Noel Llopis, is small, tasteful, fast, and supports fixtures (and nested fixtures) via structs and struct inheritance. Honest question: Why would I use Catch instead?
- adding a custom main() to unittest++ was pretty messy
- unittest++ is not single-header, meaning you have to recompile all flavours everytime you switch toolsets
- that nested sections stuff looks good and readable, so even though it might be doable with unittest++, this really attracts me more
That being said, I would like to hear from the author or anyone else who can compare them. But likely I'm going to use this for the next project just to check it out.
Re: Catch: A modern, C++-native, header-only, framework for unit tests
#9I don't really see the advantage of Catch over http://unittest-cpp.sourceforge.net/ UnitTest++ was written by Noel Llopis, is small, tasteful, fast, and supports fixtures (and nested fixtures) via structs and struct inheritance. Honest question: Why would I use Catch instead?