mirror of
https://github.com/catchorg/Catch2.git
synced 2025-05-31 08:57:58 +00:00
Tags beginning with a non alpha-numeric character are now disallowed.
Added !throws special tag which denotes a test case to be skipped when run with -e (the idea being that the test case is expected to throw an exception which is not caught within a XXX_THROWS assertion).
This commit is contained in:
parent
c5406a25bf
commit
20cad7cb1d
18 changed files with 312 additions and 244 deletions
|
@ -40,6 +40,7 @@ namespace Catch {
|
|||
std::string tagsAsString;
|
||||
SourceLineInfo lineInfo;
|
||||
bool isHidden;
|
||||
bool throws;
|
||||
};
|
||||
|
||||
class TestCase : protected TestCaseInfo {
|
||||
|
@ -55,6 +56,7 @@ namespace Catch {
|
|||
TestCaseInfo const& getTestCaseInfo() const;
|
||||
|
||||
bool isHidden() const;
|
||||
bool throws() const;
|
||||
bool hasTag( std::string const& tag ) const;
|
||||
bool matchesTags( std::string const& tagPattern ) const;
|
||||
std::set<std::string> const& getTags() const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue