Python nosetests no such option --html--report 如何生成html报告
Python nosetests no such option --html--report how to generate the html report
我有一个 Selenium Python 回归测试脚本。我的 HTMLTestRunner 无法生成测试报告。我现在正在尝试使用 Nose 插件生成 HTML 报告。
我已经安装了 Nose 和 pip install nose-html-reporting
我正在 windows cmd 中尝试以下命令到 运行 我的测试脚本并生成报告。
nosetests.exe e:\test_runners\selenium_regression_test\ClearCore\Regression TestCase\RegressionProject_TestCase2.py --with-html --html-report=nose_report.html
我收到以下错误:
nosestests: error: no such option: --html-report
谁能告诉我一个示例命令,我可以用它来 运行 我的测试脚本并输出 html 报告?
我现在已经开始工作了。我使用了以下命令
nosetests.exe e:\test_runners\selenium_regression_test\ClearCore\Regression TestCase\RegressionProject_TestCase2.py --with-html --html-file=e:\report.html
有什么方法可以将此命令添加到我的测试脚本中,例如在主要部分?所以我可以 运行 它通过 PyCharm IDE 吗?
我还想在报告文件名中添加一个日期。当测试 运行 过夜时,最好在文件名中包含一个日期。
请问我该怎么做?
if __name__ == '__main__':
谢谢,里亚兹
nose-html-reporting 插件好像还没有安装
pip install nose-html-reporting
以下命令打印已安装插件的列表以供检查。
nosetests --plugins
我有一个 Selenium Python 回归测试脚本。我的 HTMLTestRunner 无法生成测试报告。我现在正在尝试使用 Nose 插件生成 HTML 报告。
我已经安装了 Nose 和 pip install nose-html-reporting
我正在 windows cmd 中尝试以下命令到 运行 我的测试脚本并生成报告。
nosetests.exe e:\test_runners\selenium_regression_test\ClearCore\Regression TestCase\RegressionProject_TestCase2.py --with-html --html-report=nose_report.html
我收到以下错误:
nosestests: error: no such option: --html-report
谁能告诉我一个示例命令,我可以用它来 运行 我的测试脚本并输出 html 报告?
我现在已经开始工作了。我使用了以下命令
nosetests.exe e:\test_runners\selenium_regression_test\ClearCore\Regression TestCase\RegressionProject_TestCase2.py --with-html --html-file=e:\report.html
有什么方法可以将此命令添加到我的测试脚本中,例如在主要部分?所以我可以 运行 它通过 PyCharm IDE 吗? 我还想在报告文件名中添加一个日期。当测试 运行 过夜时,最好在文件名中包含一个日期。 请问我该怎么做?
if __name__ == '__main__':
谢谢,里亚兹
nose-html-reporting 插件好像还没有安装
pip install nose-html-reporting
以下命令打印已安装插件的列表以供检查。
nosetests --plugins