От: | flаt | ||
Дата: | 12.07.21 03:46 | ||
Оценка: |
There are a few unique features which makes UT worth trying
* Firstly, it supports all the basic Unit Testing Framework features (automatic registration of tests, assertions, suites, etc...)
* It's easy to integrate (it's just one header/module)
* It's macro free which makes testing experience that much nicer (it uses modern C++ features instead, macros are opt-in rather than being compulsory — Can I still use macros?)
* It's flexible (all parts of the framework such as: runner, reporter, printer can be customized, basically most other Unit Testing Frameworks can be implemented on top of UT primitives)
* It has smaller learning curve (just a few simple concepts (expect, test, suite))
* It leverages C++ features to support more complex testing (parameterized)
* It's faster to compile and execute than similar frameworks which makes it suitable for bigger projects without additional hassle (Benchmarks)
* It supports TDD/BDD workflows
* It supports Gherkin specification
* It supports Spec
* ...