@@ -367,7 +367,7 @@ customizations to the nose testing infrastructure are in
367367:mod: `matplotlib.testing `. (There is other old testing cruft around,
368368please ignore it while we consolidate our testing to these locations.)
369369
370- .. _nose : http ://somethingaboutorange.com/mrl/projects/nose /
370+ .. _nose : https ://nose.readthedocs.org/en/latest /
371371
372372Requirements
373373------------
@@ -384,35 +384,39 @@ The following software is required to run the tests:
384384Running the tests
385385-----------------
386386
387- Running the tests is simple. Make sure you have nose installed and run
388- the script :file: `tests.py ` in the root directory of the distribution.
387+ Running the tests is simple. Make sure you have nose installed. There are two
388+ options to run tests in matplotlib:
389+
390+ - use the makefile, and type ``make test `` or ``make test-coverage ``
391+
392+ - run the script :file: `tests.py ` in the root directory of the distribution.
389393The script can take any of the usual `nosetest arguments `_, such as
390394
391- =================== ===========
392- ``-v `` increase verbosity
393- ``-d `` detailed error messages
394- ``--with-coverage `` enable collecting coverage information
395- =================== ===========
395+ =================== ===========
396+ ``-v `` increase verbosity
397+ ``-d `` detailed error messages
398+ ``--with-coverage `` enable collecting coverage information
399+ =================== ===========
396400
397- To run a single test from the command line, you can provide a
398- dot-separated path to the module followed by the function separated by
399- a colon, eg. (this is assuming the test is installed)::
401+ To run a single test from the command line, you can provide a
402+ dot-separated path to the module followed by the function separated by
403+ a colon, eg. (this is assuming the test is installed)::
400404
401- python tests.py matplotlib.tests.test_simplification:test_clipping
405+ python tests.py matplotlib.tests.test_simplification:test_clipping
402406
403- An alternative implementation that does not look at command line
404- arguments works from within Python::
407+ An alternative implementation that does not look at command line
408+ arguments works from within Python::
405409
406- import matplotlib
407- matplotlib.test()
410+ import matplotlib
411+ matplotlib.test()
408412
409413
410- .. _`nosetest arguments` : http://somethingaboutorange.com/mrl/projects/nose/1.0.0/usage.html
414+ .. _`nosetest arguments` : http://somethingaboutorange.com/mrl/projects/nose/1.0.0/usage.html
411415
412416
413- Running tests by any means other than `matplotlib.test() `
414- does not load the nose "knownfailureif" (Known failing tests) plugin,
415- causing known-failing tests to fail for real.
417+ Running tests by any means other than `matplotlib.test() `
418+ does not load the nose "knownfailureif" (Known failing tests) plugin,
419+ causing known-failing tests to fail for real.
416420
417421Writing a simple test
418422---------------------
0 commit comments