import allure,os,pytest
class TestClass05():
@allure.feature("用户登录")
@allure.story("登陆成功")
def test_success(self):
assert 1==1
@allure.feature("用户登录功能")
@allure.story("登陆失败")
def test_fail(self):
assert 2==2
if __name__=='__main__':
pytest.main(['--alluredir', 'report/result', 'test_02.py'])
split = 'allure ' + 'generate ' + './report/result ' + '-o ' + './report/html ' + '--clean'
os.system(split)