TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Getting Started with Django Lesson 3, Testing

70 pointsby kennethloveabout 12 years ago

2 comments

zalewabout 12 years ago
&#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 未加载
airlocksoftwareabout 12 years ago
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.