all.py 480 B

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