summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Johnson <me@adamj.eu>2018-09-01 22:27:43 +0300
committerTim Graham <timograham@gmail.com>2018-09-10 11:17:25 -0400
commit2b2474b75d63fcded37b872fcd2bb543d7502a8a (patch)
tree75b677ba8cbe686044269a954a33b2d33bea2da4
parent56dd80e573f8ffd7bce3b8db4f51f92057c12b70 (diff)
downloaddjango-2b2474b75d63fcded37b872fcd2bb543d7502a8a.tar.gz
[2.1.x] Fixed #29729 -- Updated contributing tutorial to run tests on master.
Backport of f8ff529ee32c79b270176f5e8d7a3f6ef048ac31 from master
-rw-r--r--docs/intro/contributing.txt69
1 files changed, 35 insertions, 34 deletions
diff --git a/docs/intro/contributing.txt b/docs/intro/contributing.txt
index ef44c81600..e5765987da 100644
--- a/docs/intro/contributing.txt
+++ b/docs/intro/contributing.txt
@@ -187,36 +187,6 @@ The installed version of Django is now pointing at your local copy. You will
immediately see any changes you make to it, which is of great help when writing
your first patch.
-Rolling back to a previous revision of Django
-=============================================
-
-For this tutorial, we'll be using ticket :ticket:`24788` as a case study, so
-we'll rewind Django's version history in git to before that ticket's patch was
-applied. This will allow us to go through all of the steps involved in writing
-that patch from scratch, including running Django's test suite.
-
-**Keep in mind that while we'll be using an older revision of Django for this
-tutorial, you should always use the current version of the master branch when
-working on your own patch for a ticket!**
-
-.. note::
-
- The patch for this ticket was written by Paweł Marczewski, and it was
- applied to Django as `commit 4df7e8483b2679fc1cba3410f08960bac6f51115`__.
- Consequently, we'll be using the revision of Django just prior to that,
- `commit 4ccfc4439a7add24f8db4ef3960d02ef8ae09887`__.
-
-__ https://github.com/django/django/commit/4df7e8483b2679fc1cba3410f08960bac6f51115
-__ https://github.com/django/django/commit/4ccfc4439a7add24f8db4ef3960d02ef8ae09887
-
-Navigate into Django's root directory (that's the one that contains ``django``,
-``docs``, ``tests``, ``AUTHORS``, etc.). You can then check out the older
-revision of Django that we'll be using in the tutorial below:
-
-.. console::
-
- $ git checkout 4ccfc4439a7add24f8db4ef3960d02ef8ae09887
-
Running Django's test suite for the first time
==============================================
@@ -247,9 +217,8 @@ some other flavor of Unix, run:
$ ./runtests.py
-Now sit back and relax. Django's entire test suite has over 9,600 different
-tests, so it can take anywhere from 5 to 15 minutes to run, depending on the
-speed of your computer.
+Now sit back and relax. Django's entire test suite has thousands of tests, and
+it takes at least a few minutes run, depending on the speed of your computer.
While Django's test suite is running, you'll see a stream of characters
representing the status of each test as it's run. ``E`` indicates that an error
@@ -290,6 +259,36 @@ __ https://djangoci.com
:ref:`run the tests using a different database
<running-unit-tests-settings>`.
+Rolling back to a previous revision of Django
+=============================================
+
+For this tutorial, we'll be using ticket :ticket:`24788` as a case study, so
+we'll rewind Django's version history in git to before that ticket's patch was
+applied. This will allow us to go through all of the steps involved in writing
+that patch from scratch, including running Django's test suite.
+
+**Keep in mind that while we'll be using an older revision of Django for this
+tutorial, you should always use the current version of the master branch when
+working on your own patch for a ticket!**
+
+.. note::
+
+ The patch for this ticket was written by Paweł Marczewski, and it was
+ applied to Django as `commit 4df7e8483b2679fc1cba3410f08960bac6f51115`__.
+ Consequently, we'll be using the revision of Django just prior to that,
+ `commit 4ccfc4439a7add24f8db4ef3960d02ef8ae09887`__.
+
+__ https://github.com/django/django/commit/4df7e8483b2679fc1cba3410f08960bac6f51115
+__ https://github.com/django/django/commit/4ccfc4439a7add24f8db4ef3960d02ef8ae09887
+
+Navigate into Django's root directory (that's the one that contains ``django``,
+``docs``, ``tests``, ``AUTHORS``, etc.). You can then check out the older
+revision of Django that we'll be using in the tutorial below:
+
+.. console::
+
+ $ git checkout 4ccfc4439a7add24f8db4ef3960d02ef8ae09887
+
Creating a branch for your patch
================================
@@ -461,7 +460,9 @@ directory and run:
$ ./runtests.py
-As long as you don't see any failures, you're good to go.
+Remember that for this tutorial you're working from an older version of Django.
+You may see a few unrelated failures that have since been fixed in Django's
+master branch.
Writing Documentation
=====================