Search code examples
python-3.xpython-behave

Need to run multiple feature file in behave using python


My command in python is feature_file_folder -f allure_behave.formatter:AllureFormatter -o target/allure-results --no-capture --no-capture-stderr This runs all the feature files but if i want to run only 2 feature files out of 10 i am having problems i can run 1 or all feature file.


Solution

  • You can mention feature file names while executing.

    behave -f allure_behave.formatter:AllureFormatter \
                        -o target/allure-results  \
                        --no-capture \
                        --no-capture-stderr \
                        example1.feature example2.feature