pytest--通过读取pytest.ini配置文件执行测试用例
[pytest] # 命令行参数,多个参数用空格分隔 addopts = -vs # 测试用例文件夹,可自己配置,../文件1 表示文件1的上一级目录 testpaths = ../Test_case # 配置测试搜索的模块文件名称 python_files = test*.py # 配置测试搜索的测试类名 python_classes = Test* # 配置测试搜索的测试函数名 python_functions = test

[pytest] # 命令行参数,多个参数用空格分隔 addopts = -vs # 测试用例文件夹,可自己配置,../文件1 表示文件1的上一级目录 testpaths = ../Test_case # 配置测试搜索的模块文件名称 python_files = test*.py # 配置测试搜索的测试类名 python_classes = Test* # 配置测试搜索的测试函数名 python_functions = test
