我想运行多个测试文件。每个文件有10-15个测试用例。如果第一个文件的测试用例失败,则测试执行停止,其余测试用例不执行。
来自jenkins的shell命令:
cd $WORKSPACE/RestAPI
echo "starting test..."
python first_file.py ${VERSION} ${PROJECT_ID} ${API_VERSION}
python second_file.py ${VERSION} ${PROJECT_ID} ${API_VERSION}
python third_file.py ${VERSION} ${PROJECT_ID} ${API_VERSION}
python forth_file.py ${VERSION} ${PROJECT_ID} ${API_VERSION}
python fifth_file.py ${VERSION} ${PROJECT_ID} ${API_VERSION}
如何在不停止的情况下运行所有测试? 我期待测试运行后的结果:50测试通过,20失败(跨所有测试文件。) 谢谢!