-
Notifications
You must be signed in to change notification settings - Fork 0
3. Unit Testing in Django
Chee Yim Goh edited this page Aug 21, 2017
·
8 revisions
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).
- Functional Test with Selenium
- Django (model, view, template) unit test
- Introducing Testing Goat (TDD)
- 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:-
- http://www.obeythetestinggoat.com
- http://toastdriven.com/blog/2011/apr/10/guide-to-testing-in-django/
- https://jeffknupp.com/blog/2012/02/11/unit-testing-in-django/
- http://django-testing-docs.readthedocs.io/en/latest/views.html
- http://blog.celerity.com/how-to-write-speedy-unit-tests-in-django-part-1-the-basics
- https://realpython.com/blog/python/testing-in-django-part-1-best-practices-and-examples/
- https://docs.djangoproject.com/en/1.11/topics/testing/overview/
- https://developer.mozilla.org/en-US/docs/Learn/Server-side/Django/Testing
- https://app.pluralsight.com/player?course=unit-testing-python&author=emily-bache&name=unit-testing-python-m1&clip=2