Skip to content

3. Unit Testing in Django

Chee Yim Goh edited this page Aug 21, 2017 · 8 revisions

Django Test Suite

Django comes with a test suite (django.test.TestCase) of its own, in the tests directory of the code base. Many Django project test suites are comprised mostly of integration tests (django.test.Client).

Things we'll cover

  • Functional Test with Selenium
  • Django (model, view, template) unit test
  • Introducing Testing Goat (TDD)

More Advance Stuff (which we'll not cover)

  • Mocking
  • Test Fixtures
  • Integration Testing (dead giveaway - django.test.Client)
    • Testing with database
    • Testing API
  • Behavior Driven Development (BDD)
  • Code Coverage
  • Continuous Integration (CI)

Credit:-

Clone this wiki locally