@@ -367,7 +367,7 @@ customizations to the nose testing infrastructure are in
367
367
:mod: `matplotlib.testing `. (There is other old testing cruft around,
368
368
please ignore it while we consolidate our testing to these locations.)
369
369
370
- .. _nose : http ://somethingaboutorange.com/mrl/projects/nose /
370
+ .. _nose : https ://nose.readthedocs.org/en/latest /
371
371
372
372
Requirements
373
373
------------
@@ -384,35 +384,39 @@ The following software is required to run the tests:
384
384
Running the tests
385
385
-----------------
386
386
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.
389
393
The script can take any of the usual `nosetest arguments `_, such as
390
394
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
+ =================== ===========
396
400
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)::
400
404
401
- python tests.py matplotlib.tests.test_simplification:test_clipping
405
+ python tests.py matplotlib.tests.test_simplification:test_clipping
402
406
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::
405
409
406
- import matplotlib
407
- matplotlib.test()
410
+ import matplotlib
411
+ matplotlib.test()
408
412
409
413
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
411
415
412
416
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.
416
420
417
421
Writing a simple test
418
422
---------------------
0 commit comments