mirror of
https://github.com/catchorg/Catch2.git
synced 2024-12-23 11:43:29 +01:00
Updated overview docs a bit
This commit is contained in:
parent
4c1880b35f
commit
cb0a5194af
@ -6,27 +6,27 @@ So what does Catch bring to the party that differentiates it from these? Apart f
|
|||||||
|
|
||||||
## Key Features
|
## Key Features
|
||||||
|
|
||||||
* Really easy to get started. Just download catch.hpp, #include it and you're away.
|
* Really easy to get started. Just download catch.hpp, `#include` it and you're away.
|
||||||
* No external dependencies. As long as you can compile C++98 and have a C++ standard library available.
|
* No external dependencies. As long as you can compile C++11 and have a C++ standard library available.
|
||||||
* Write test cases as, self-registering, functions or methods.
|
* Write test cases as, self-registering, functions (or methods, if you prefer).
|
||||||
* Divide test cases into sections, each of which is run in isolation (eliminates the need for fixtures!)
|
* Divide test cases into sections, each of which is run in isolation (eliminates the need for fixtures).
|
||||||
* Use BDD-style Given-When-Then sections as well as traditional unit test cases.
|
* Use BDD-style Given-When-Then sections as well as traditional unit test cases.
|
||||||
* Only one core assertion macro for comparisons. Standard C/C++ operators are used for the comparison - yet the full expression is decomposed and lhs and rhs values are logged.
|
* Only one core assertion macro for comparisons. Standard C/C++ operators are used for the comparison - yet the full expression is decomposed and lhs and rhs values are logged.
|
||||||
|
* Tests are named using free-form strings - no more couching names in legal identifiers.
|
||||||
|
|
||||||
## Other core features
|
## Other core features
|
||||||
|
|
||||||
* Tests are named using free-form strings - no more couching names in legal identifiers.
|
|
||||||
* Tests can be tagged for easily running ad-hoc groups of tests.
|
* Tests can be tagged for easily running ad-hoc groups of tests.
|
||||||
* Failures can (optionally) break into the debugger on Windows and Mac.
|
* Failures can (optionally) break into the debugger on Windows and Mac.
|
||||||
* Output is through modular reporter objects. Basic textual and XML reporters are included. Custom reporters can easily be added.
|
* Output is through modular reporter objects. Basic textual and XML reporters are included. Custom reporters can easily be added.
|
||||||
* JUnit xml output is supported for integration with third-party tools, such as CI servers.
|
* JUnit xml output is supported for integration with third-party tools, such as CI servers.
|
||||||
* A default main() function is provided (in a header), but you can supply your own for complete control (e.g. integration into your own test runner GUI).
|
* A default main() function is provided, but you can supply your own for complete control (e.g. integration into your own test runner GUI).
|
||||||
* A command line parser is provided and can still be used if you choose to provided your own main() function.
|
* A command line parser is provided and can still be used if you choose to provided your own main() function.
|
||||||
* Catch can test itself.
|
* Catch can test itself.
|
||||||
* Alternative assertion macro(s) report failures but don't abort the test case
|
* Alternative assertion macro(s) report failures but don't abort the test case
|
||||||
* Floating point tolerance comparisons are built in using an expressive Approx() syntax.
|
* Floating point tolerance comparisons are built in using an expressive Approx() syntax.
|
||||||
* Internal and friendly macros are isolated so name clashes can be managed
|
* Internal and friendly macros are isolated so name clashes can be managed
|
||||||
* Support for Matchers (early stages)
|
* Matchers
|
||||||
|
|
||||||
## Objective-C-specific features
|
## Objective-C-specific features
|
||||||
|
|
||||||
@ -39,7 +39,7 @@ So what does Catch bring to the party that differentiates it from these? Apart f
|
|||||||
|
|
||||||
See the list of [open source projects using Catch](opensource-users.md).
|
See the list of [open source projects using Catch](opensource-users.md).
|
||||||
|
|
||||||
See the [tutorial](tutorial.md) to get more of a taste of using CATCH in practice
|
See the [tutorial](tutorial.md) to get more of a taste of using Catch in practice
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user