Closed mimon closed 5 years ago
The problem here is that due to an implementation detail, the spaces before "given" are part of the section name when you need to filter. This is already being worked upon in the FilterWS
branch, for now you can work around it by providing the name like this:
$ ./a.out *pizza* -c " Given: dough"
Filters: *pizza*
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
a.out is a Catch v2.9.1 host application.
Run with -? for options
-------------------------------------------------------------------------------
Scenario: pizza
Given: dough
When: applying
Then: cheese
-------------------------------------------------------------------------------
1708.cpp:7
...............................................................................
1708.cpp:8: FAILED:
CHECK( false )
===============================================================================
test cases: 1 | 1 failed
assertions: 1 | 1 failed
Okey. Got it. It works when adding the spaces and the prefix. Thanks.
I'll keep this open until we merge the fix into master.
Describe the bug Given the following example:
Then running a specific section name
$ test *pizza* -c "dough"
does not run any assertions on my machine (when it should):Expected behavior The assertion should be executed and output something like:
Platform information: