-
Notifications
You must be signed in to change notification settings - Fork 19
Run by line
Tyler-Keith-Thompson edited this page Dec 1, 2019
·
2 revisions
Sometimes if you have a data table it's useful to be able to run one specific example. To accomplish this you can use the same method used currently to run with tags.
public func shouldRunWith(scenario:Scenario?, tags: [String]) -> Bool {
return shouldRun(scenario?.withLine(4))
}
If for some reason you need to run an entire feature at a line level, first really examine whether you should have multiple features in the same file...but the library supports it
public func shouldRunWith(scenario:Scenario?, tags: [String]) -> Bool {
return shouldRun(scenario?.feature?.withLine(4))
}