-
Notifications
You must be signed in to change notification settings - Fork 7
Home
jalMogo edited this page Aug 22, 2018
·
7 revisions
Welcome to the api wiki!
Running a specific unit test (note we are using nose, for now, which requires the syntax below):
./manage.py test sa_api_v2.tests.test_views:TestPlaceInstanceView.test_GET_response
Running tests that output to a file:
./manage.py test 2>&1 | tee test-output.txt
Running tests that will stop on break points:
(this is due a constraint based on our nose dependency, and breakpoints won't work with captures stdout/stderr either, like 2>&1
above):
./manage.py test -s
And to capture print
statements in the console, update the verbosity flag:
./manage.py test -v 2