自动化测试和其在devops中的应用 python 2.x/3.x 环境安装 nose 单元测试框架 easy_install nose 或 pip install nose(推荐) 具体的用法 cd到编写了单元测试用例的文件夹,单元测试用例的文件要以 test 开头 运行命令 nosetests -s test_xx.py 参数 s 表示可以输入测试用例文件里面的 print 这种程序输出