Automated testing: Difference between revisions

→‎Details specific to OpenHatch: update instructions for running a few tests and remove reference to MySQL
imported>Paulproteus
imported>Walkerh
(→‎Details specific to OpenHatch: update instructions for running a few tests and remove reference to MySQL)
 
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 ===
 
python manage./bin/sqlite_mysitepy test base.Feed base.Unsubscribe.test_unsubscribe_view
 
The structure here is '''app'''.'''class'''.'''method'''. So if you want to just run
Anonymous user