all.py 328 B

12345678910
  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. pytest.main(['./testcase', '-v', '--html=reportname.html', '--alluredir', './result/'])
  8. # os.system('allure generate ./result/ -o ./report --clean')