We can Behave exclude tests the executing files by their filename from execution.
Suppose, we have more than one feature file within the features folder. The following screen can be seen on the computer â
On executing the command behave exclude tests, the output will be as follows â
If we have to only run the feature file Payment. feature and exclude Payment1.feature, we have to pass the command line argument –e or –exclude followed by the pattern of the regular expression.
On executing the command behave –exclude *1.feature, the output is as follows â
The output shows one feature passed along with the Payment. feature file name. Also, Payment1.feature is not included in the run.
Next Topic – Click Here
Pingback: Behave - Runner Script - Adglob Infosystem Pvt Ltd
Looking forward to reading more. Great article post.Really looking forward to read more. Keep writing.