From 8e0dfcc679b965374ad2f13532e6e483dab4c6e0 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Sat, 19 Jul 2008 22:02:33 +0000 Subject: Indicate how to run tests. --- docs/narr/project.rst | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) (limited to 'docs') diff --git a/docs/narr/project.rst b/docs/narr/project.rst index 651f505c5..7c48874b7 100644 --- a/docs/narr/project.rst +++ b/docs/narr/project.rst @@ -82,4 +82,27 @@ see the following:: easier, as changes to Python code under ``repoze.bfg`` is not put into effect until the server restarts. - +Running The Tests For Your Application +-------------------------------------- + +To run unit tests for your application, you should invoke them like so:: + + $ python setup.py test -q + running test + running egg_info + writing requirements to myproject.egg-info/requires.txt + writing myproject.egg-info/PKG-INFO + writing top-level names to myproject.egg-info/top_level.txt + writing dependency_links to myproject.egg-info/dependency_links.txt + writing entry points to myproject.egg-info/entry_points.txt + reading manifest file 'myproject.egg-info/SOURCES.txt' + writing manifest file 'myproject.egg-info/SOURCES.txt' + running build_ext + . + ---------------------------------------------------------------------- + Ran 1 test in 0.566s + + OK + +The tests are found in the ``tests.py`` module in your generated +project. One sample test exists. -- cgit v1.2.3