mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-22 21:36:11 +01:00
Added tags docs
This commit is contained in:
parent
b5b1b1e430
commit
20e59ce9d1
@ -282,7 +282,14 @@ namespace Catch {
|
|||||||
// subsequently wrapped lines
|
// subsequently wrapped lines
|
||||||
virtual std::string optionDescription() const {
|
virtual std::string optionDescription() const {
|
||||||
return
|
return
|
||||||
"!TBD";
|
"This option allows one or more tags or tag patterns to be specified.\n"
|
||||||
|
"Each tag is enclosed in square brackets. A series of tags form an AND expression "
|
||||||
|
"wheras a comma seperated sequence forms an OR expression. e.g.:\n\n"
|
||||||
|
" -g [one][two],[three]\n\n"
|
||||||
|
"This matches all tests tagged [one] and [two], as well as all tests tagged [three].\n\n"
|
||||||
|
"Tags can be negated with the ~ character. This removes matching tests from the set. e.g.:\n\n"
|
||||||
|
" -g [one]~[two]\n\n"
|
||||||
|
"matches all tests tagged [one], except those also tagged [two]";
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual void parseIntoConfig( const Command& cmd, ConfigData& config ) {
|
virtual void parseIntoConfig( const Command& cmd, ConfigData& config ) {
|
||||||
|
@ -83,12 +83,12 @@ namespace Catch {
|
|||||||
class Tag {
|
class Tag {
|
||||||
public:
|
public:
|
||||||
Tag()
|
Tag()
|
||||||
: m_isNegated( false )
|
: m_isNegated( false )
|
||||||
{}
|
{}
|
||||||
|
|
||||||
Tag( const std::string& name, bool isNegated )
|
Tag( const std::string& name, bool isNegated )
|
||||||
: m_name( name ),
|
: m_name( name ),
|
||||||
m_isNegated( isNegated )
|
m_isNegated( isNegated )
|
||||||
{}
|
{}
|
||||||
|
|
||||||
std::string getName() const {
|
std::string getName() const {
|
||||||
|
Loading…
Reference in New Issue
Block a user