Skip to content

Commit 2d38a6b

Browse files
authored
Update TestDrivenDevelopment.rst
1 parent 20b43ed commit 2d38a6b

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

source/modules/TestDrivenDevelopment.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,20 @@ FIXME: change the path from my personal to something generic
77
Test Driven Development
88
#######################
99

10-
"Testing" is any strategy for making sure your code behaves as expected. "Unit Testing" is a particular strategy, that:
10+
"Testing" is any strategy for making sure your code behaves as expected. "Unit testing" is a particular strategy, that:
1111

12-
* is easy to run in an automated fashion.
13-
* utilized isolated tests for each individual
12+
* is easy to run in an automated fashion
13+
* utilizes isolated tests for each individual
1414

1515
"Test Driven Development" (TDD) is a development strategy that integrates the development of unit tests with the code itself. In particular, you write the tests *before* you write the code, which seems pretty backward, but it has some real strengths.
1616

1717
We'll demonstrate this technique with an example.
1818

19-
The Following is adapted from Mark Pilgrim's excellent "Dive into Python":
19+
The following is adapted from Mark Pilgrim's excellent "Dive into Python":
2020

2121
https://diveintopython3.problemsolving.io/
2222

23-
The primary difference is that this version uses the simpler pytest testing framework, rather than `unittest`, which is discussed in:
23+
The primary difference is that this version uses the simpler pytest testing framework, rather than `unittest`, which is discussed in
2424
:ref:`unit_testing`
2525

2626
Unit Testing
@@ -108,7 +108,7 @@ conversion functions — ``to_roman()``, and later ``from_roman()`` — can
108108
be written and tested as a unit, separate from any larger program that
109109
uses them.
110110
111-
Technically, you can write unit tests with plain Python -- recall the ``assert`` statement that you have already used to write simple tests. But it is very helpful to use a framework to make it easier to write and run your tests. In this program, we use the `pytest` package: it is both very easy to get started with, and provides a lot of powerful features to aide in testing complex systems.
111+
Technically, you can write unit tests with plain Python -- recall the ``assert`` statement that you have already used to write simple tests. But it is very helpful to use a framework to make it easier to write and run your tests. In this program, we use the `pytest` package: it is both very easy to get started with, and provides a lot of powerful features to aid in testing complex systems.
112112

113113
.. note:: ``pytest`` does not come with Python out of the box. But it is easily installable via `pip` (or conda, if you are using conda)::
114114

0 commit comments

Comments
 (0)