diff options
| author | Harry Moreno <morenoh149@gmail.com> | 2016-06-30 18:10:03 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2016-07-01 09:06:16 -0400 |
| commit | 9c48e17480432b8723fcdcc262d8d62866e93a4f (patch) | |
| tree | 7c4f64aeb7f25427c1f00d382b62bed297b27526 /docs/topics/testing | |
| parent | 96870045385fa0b7c3efeeaa4a2353c7334ee26b (diff) | |
[1.10.x] Added parallel test running to "Speeding up the tests" docs.
Backport of 30c65ee8187c7a87d2fc83c5b8966b1ea5e5316b from master
Diffstat (limited to 'docs/topics/testing')
| -rw-r--r-- | docs/topics/testing/overview.txt | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/docs/topics/testing/overview.txt b/docs/topics/testing/overview.txt index aa6a7af191..709d9ad262 100644 --- a/docs/topics/testing/overview.txt +++ b/docs/topics/testing/overview.txt @@ -326,10 +326,18 @@ need to test for success or failure at that level. Speeding up the tests --------------------- -In recent versions of Django, the default password hasher is rather slow by -design. If during your tests you are authenticating many users, you may want -to use a custom settings file and set the :setting:`PASSWORD_HASHERS` setting -to a faster hashing algorithm:: +Running tests in parallel +~~~~~~~~~~~~~~~~~~~~~~~~~ + +As long as your tests are properly isolated, you can run them in parallel to +gain a speed up on multi-core hardware. See :option:`test --parallel`. + +Password hashing +~~~~~~~~~~~~~~~~ + +The default password hasher is rather slow by design. If you're authenticating +many users in your tests, you may want to use a custom settings file and set +the :setting:`PASSWORD_HASHERS` setting to a faster hashing algorithm:: PASSWORD_HASHERS = [ 'django.contrib.auth.hashers.MD5PasswordHasher', |
