diff options
author | Raphaël Barrois <raphael.barrois@polytechnique.org> | 2016-01-06 23:10:26 +0100 |
---|---|---|
committer | Raphaël Barrois <raphael.barrois@polytechnique.org> | 2016-01-07 01:38:05 +0100 |
commit | 28ce31db61a46fbd73126630c758d32a7245da42 (patch) | |
tree | c61aff92c4de7d7cc59fa5ce3f871f1a6cd1153d /README.rst | |
parent | be85908f5205810083c524a25c7da565788f2c03 (diff) | |
download | factory-boy-28ce31db61a46fbd73126630c758d32a7245da42.tar factory-boy-28ce31db61a46fbd73126630c758d32a7245da42.tar.gz |
Clarify the (dis)advantages of randomized tests.
As noted in #259, fully random tests have some issues, notably possibly
flaky builds: it is quite helpful to be able to choose the random seeds
used by factory_boy and friends.
Diffstat (limited to 'README.rst')
-rw-r--r-- | README.rst | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -181,7 +181,7 @@ It is also possible to create a bunch of objects in a single call: Realistic, random values """""""""""""""""""""""" -Tests look better with random yet realistic values. +Demos look better with random yet realistic values; and those realistic values can also help discover bugs. For this, factory_boy relies on the excellent `fake-factory <https://pypi.python.org/pypi/fake-factory>`_ library: .. code-block:: python @@ -199,6 +199,10 @@ For this, factory_boy relies on the excellent `fake-factory <https://pypi.python <User: Lucy Murray> +.. note:: Use of fully randomized data in tests is quickly a problem for reproducing broken builds. + To that purpose, factory_boy provides helpers to handle the random seeds it uses. + + Lazy Attributes """"""""""""""" |