TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Getting Started with Django Lesson 3, Testing

70 点作者 kennethlove大约 12 年前

2 条评论

zalew大约 12 年前
&#62; Django-discover-runner is basically just a smarter version of Django's default test runner.<p>personally I use nose wrapped in django-jenkins and so far happy with it<p>my test conf is<p><pre><code> TEST_RUNNER = 'django_nose.NoseTestSuiteRunner' JENKINS_TEST_RUNNER = 'django_jenkins.nose_runner.CINoseTestSuiteRunner' JENKINS_TASKS = ( 'django_jenkins.tasks.run_pep8', 'django_jenkins.tasks.run_pylint', 'django_jenkins.tasks.with_coverage', 'django_jenkins.tasks.django_tests', 'django_jenkins.tasks.run_sloccount', ) NOSE_ARGS = ['--with-fixture-bundling', ] </code></pre> and run it<p><pre><code> ./manage.py jenkins --pep8-ignore=E501,W602 --pylint-rcfile=.pylint --coverage-html-report=reports/html </code></pre> the pep8-ignore is because it somehow doesn't respect the .pep8<p>fixture-bundling is a nice feature that speeds up the process
评论 #5446620 未加载
airlocksoftware大约 12 年前
Thanks for making these, Ken. I just did the first one yesterday, and it's been great so far. I especially appreciate the full transcript / notes for the videos.