Skip to content

Commit

Permalink
Add further reading resources, fix lists
Browse files Browse the repository at this point in the history
  • Loading branch information
thejunglejane committed Nov 27, 2018
1 parent 193a699 commit 9641aff
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 8 deletions.
11 changes: 7 additions & 4 deletions _source/unit-1/lesson-0.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ Unit Testing Libraries

As we mentioned in Unit 0, there are several different unit testing
libraries and frameworks for Python. To name a few:

* :mod:`unittest`
* `pytest`_
* `marbles`_
Expand All @@ -30,10 +31,12 @@ In the interest of full transparency, I am the co -creator and
framework to provide more information-rich failure messages, and writing
`marbles`_ tests is basically the same as writing :mod:`unittest` tests.

`nose`_ is no longer being maintained and you shouldn't use it. I
included it in this list because you might come across it at some point,
and it's useful to know about it. My first unit tests were written in
nose primarily becase tests are very easy to write in nose.
.. warning::
`nose`_ is no longer being maintained and you shouldn't use it. I
included it in this list because you might come across it at some
point, and it's useful to know about it. My first unit tests were
written in nose primarily becase tests are very easy to write in
nose.

:mod:`doctest` isn't really a unit testing library, but it's worth
knowing about. :mod:`doctest` looks for pieces of text that look like
Expand Down
30 changes: 26 additions & 4 deletions _source/unit-3/lesson-1.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,36 @@ Lesson 1
This lesson contains links to resources where you can read more about
testing.

* `Improve Your Python: Understanding Unit Testing <knupp>`_
Documentation
-------------

* `unittest`_
* `pytest`_
* `doctest`_
* `marbles`_
* `ipytest`_
* `coverage`_

.. _unittest: https://docs.python.org/3/library/unittest.html
.. _pytest: https://pytest.org
.. _doctest: https://docs.python.org/3/library/doctest.html
.. _marbles: https://marbles.readthedocs.io
.. _ipytest: https://github.com/chmp/ipytest
.. _coverage: https://coverage.readthedocs.io/en/v4.5.x/

Articles and Videos
-------------------

* `The Hitchiker's Guide to Python: Testing Your Code <hitchhikers>`_
* `Improve Your Python: Understanding Unit Testing <knupp>`_
* `Unit testing Anti-patterns catalogue <anti-patterns>`_
* `A Simple Introduction to Test Driven Development with Python <TDD>`_
* `A Toolkit for Testing Stochastic Simulations against Statistical Oracles <stochastic>`_
* `Unit Testing Data with Marbles <marbles>`_
* `Unit Testing Data with Marbles <unit testing data>`_ (video)

.. _knupp: https://jeffknupp.com/blog/2013/12/09/improve-your-python-understanding-unit-testing/
.. _hitchikers: https://docs.python-guide.org/writing/tests/
.. _knupp: https://jeffknupp.com/blog/2013/12/09/improve-your-python-understanding-unit-testing/
.. _anti-patterns: https://stackoverflow.com/questions/333682/unit-testing-anti-patterns-catalogue
.. _TDD: https://medium.freecodecamp.org/learning-to-test-with-python-997ace2d8abe
.. _stochastic: https://ieeexplore.ieee.org/document/7928000
.. _marbles:
.. _unit testing data: https://www.youtube.com/watch?v=enlNiRSt9nk

0 comments on commit 9641aff

Please sign in to comment.