I have installed allure 2.8.17. It is on a pipenv
environment. When I am running the below command in terminal:
behave -f allure_behave.formatter:AllureFormatter -o reports/
It is failing with the below error
usage: behave [options] [ [DIR|FILE|FILE:LINE] ]+
behave: error: format=allure_behave.formatter:AllureFormatter is unknown
(behave) sharathkrishnan@sharaths-mbp features %
I think you are missing allure-behave: pip install allure-behave
?
you need to install using pip install allure-behave and then run the above command
This also commonly happens when you point the file path with a typo. Mostly case sensitive problems like./Reports instead of./reports
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.