Excluding scenarios from synchronization
Last updated
Was this helpful?
Last updated
Was this helpful?
By default all scenarios in all feature file of the are included in the synchronization, but SpecSync can be configured to exclude certain scenarios by specifying the local scope.
The most common way to restrict the local scope is by using scenario tags. By specifying a tag expression for the local/tags
configuration setting, you can restrict the synchronization scope. (See also the reference documentation of the ).
The following example sets the local scope to the scenarios that are marked as @done
but exclude the ones that are tagged with @ignored
or @planned
.
If the configured folder or .NET project also contains feature files that you don't want to include in synchronization, you can also restrict the local scope by specifying the set of feature files. For this you need to specify one ore more path expressions () in the local/sourceFiles
configuration setting. (See also the reference documentation of the ).
The following example sets the local scope to the scenarios that only files from Folder1
and files with name start with alpha
from Folder3
are included in the synchronization.
Besides standard glob expressions, the settings can also contain logical expressions as well, e.g. Folder1/*.feature and not **/B.feature
. File paths containing white spaces have to be wrapped with quotes ("
) or apostrophes ('
), e.g. 'My Folder/A.feature'
. To see all options to express the conditions, please check .