【发布时间】:2013-06-18 00:30:27
【问题描述】:
我最近发现了 Django LiveServerTestCase 并用它来运行 Selenium 测试用例 (python manage.py test)。我喜欢它的地方在于它会在后台自动运行 Selenium 服务器。
我想从Jenkins 调整测试用例并找到这些commands
nosetests --with-xcoverage --with-xunit --cover-package=myapp --cover-erase
pylint -f parseable myapp/ | tee pylint.out
不幸的是,他们在执行脚本(以及初始化数据库等)时没有运行 Django 测试服务器。
我可以做些什么来使用nose 与LiveServerTestCase 一起工作,就像Django 做的那样?
【问题讨论】:
标签: django unit-testing selenium jenkins nose