sudo pip3 install pytest allure-python-commons allure-pytest sudo apt install openjdk-8-jdk npm
查询当前版本
npm -v node -v
下载地址:https://docs.deepin.com/d/27c896aeb3/
解压v6.4.1.tar.gz,并进行安装
cd cli-6.4.1 sudo make install
sudo npm install -g allure-commandline --save-dev
sudo npm install -g less sudo npm install -g cnpm --registry=https:/registry.npm.taobao.org sudo npm config set registry https:/registry.npm.taobao.org
./pytest_allure_report.sh
#!/bin/bash pytest --alluredir ./result/ allure generate ./result/ -o ./report/ --clean cp -r ./report/history ./result/ allure open -h 127.0.0.1 -p 8088 ./report/
sudo pip3 install pytest-html ./pytest_html_report.sh
#!/bin/bash pytest test_dde_dock.py --html=./html/report.html
cd /usr/local/lib/python3.7/dist-packages/_pytest sudo vim nodes.py
修改内容:
#self.name = name self.name = name.encode("utf-8").decode("unicode_escape")