There is a very easy way to generate reports through Allure.
Install Allure first. (1) allure-pytest 2.6.0 (2) allure-python-commons 2.6.0
then, if you were unable to generate reports, follow these steps. step -1 (using pytest) pytest test_xyz.py --alluredir = the path where you want to save reports.
step -2 allure serve report_path
if it still shows that the charm is not recognized, the command (blah -blah)
then install allure using the npm plugin using the command below
npm install -g allure-commandline --save-dev
then follow step -2 again, then one server will start and you will be able to see charm reports.
source share