Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I have spaces in Cucumber/SpecFlow Tags

I am using SpecFlow to write some tests with Visual Studio 2015 and SpecFlow 1.9.

Is it possible to have a tag on a scenario that includes spaces in the SpecFlow feature file?

Feature: My Feature
Some info

@I really want spaces here
Scenario: My Scenario
        ...

The above produces an error:

Custom tool error: Parsing error near '@I really want spaces here'

I haven't come across anything in the Cucumber docs.

I've tried guessing various usages to no avail.

like image 612
Andez Avatar asked Apr 19 '26 17:04

Andez


1 Answers

I don't think you can have spaces in your tags, and it seems that using - would be the preferred option

like image 125
Sam Holder Avatar answered Apr 21 '26 08:04

Sam Holder



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!