all.py 369 B

1234567891011
  1. import os
  2. import pytest
  3. import logging
  4. if __name__ == '__main__':
  5. logging.basicConfig(level=logging.INFO)
  6. # pytest.main(['./testcase', '--html=reportname.html'])
  7. os.system('del /f /q report result')
  8. pytest.main(['./testcase', '-v', '--html=reportname.html', '--alluredir', './result/'])
  9. # os.system('allure generate ./result/ -o ./report --clean')