@pytest.mark.parametrize('cmd,should_match', [
        ('rspec', True,),
        ('bundle exec rspec', True,),
        ('bundle exec rspec spec', True,),
        ('rspec spec/', True,),
        ('rspec .', True,),
        ('rake test', False,),
        ('rake teaspoon', False,),
    ])
    def test_command_matches(self, cmd, should_match):
        assert parser.command_matches(cmd) == should_match
Verify detection of invocation of rspec
dataset/ETHPy150Open skoczen/polytester/tests/parsers/test_rspec_parser.py/TestRspecParser.test_command_matches