Automated testing: Difference between revisions
Content added Content deleted
imported>Paulproteus |
imported>Walkerh (→Details specific to OpenHatch: update instructions for running a few tests and remove reference to MySQL) |
||
Line 112: | Line 112: | ||
python manage.py test base |
python manage.py test base |
||
=== To run your tests quickly === |
|||
The normal test runner uses MySQL, and has to do a bunch of database setup and |
|||
teardown. If you want the tests to run faster, you can use a different settings |
|||
file that uses an in-memory SQLite database. |
|||
./bin/sqlite_mysite test base |
|||
The tests will run about five times faster that way. |
|||
=== To run just a few specific tests === |
=== To run just a few specific tests === |
||
. |
python manage.py test base.Feed base.Unsubscribe.test_unsubscribe_view |
||
The structure here is '''app'''.'''class'''.'''method'''. So if you want to just run |
The structure here is '''app'''.'''class'''.'''method'''. So if you want to just run |