12345678910111213 |
- import os
- import pytest
- import logging
- from Cfg import HARDWARE_TYPE, PROJECT_TYPE, PROJECT_VERSION
- if __name__ == '__main__':
- logging.basicConfig(level=logging.INFO)
- # pytest.main(['./testcase', '--html=reportname.html'])
- os.system('del /f /q report result')
- pytest.main(['./testcase', '-v', f'--html={HARDWARE_TYPE.name}_{PROJECT_TYPE.name}_{PROJECT_VERSION}.html', '--alluredir', './result/'])
- # os.system('allure generate ./result/ -o ./report --clean')
|