Changed code directives to literal blocks

This commit is contained in:
Corey Goldberg 2014-12-28 11:28:59 -05:00 committed by Stanislav Kudriashev
parent 858f081e7a
commit e98de63760
1 changed files with 5 additions and 13 deletions

View File

@ -10,19 +10,15 @@ A timer plugin for nosetests that answers the question: *how much time does ever
Install Install
------- -------
.. code:: To install the latest release from PyPI::
pip install nose-timer pip install nose-timer
Or to install the latest development version from Git: Or to install the latest development version from Git::
.. code::
pip install git+git://github.com/mahmoudimus/nose-timer.git pip install git+git://github.com/mahmoudimus/nose-timer.git
Or to install the latest from source: Or to install the latest from source::
.. code::
git clone https://github.com/mahmoudimus/nose-timer.git git clone https://github.com/mahmoudimus/nose-timer.git
cd nose-timer cd nose-timer
@ -33,9 +29,7 @@ Usage
----- -----
Run nosetests with the ``--with-timer`` flag, and you will see a list of the Run nosetests with the ``--with-timer`` flag, and you will see a list of the
tests and the time spent by each one (in seconds): tests and the time spent by each one (in seconds)::
.. code:: bash
myapp.tests.ABigTestCase.test_the_world_is_running: 56.0010s myapp.tests.ABigTestCase.test_the_world_is_running: 56.0010s
myapp.tests.ABigTestCase.test_the_rest_of_the_galaxy_is_running: 2356.0010s myapp.tests.ABigTestCase.test_the_rest_of_the_galaxy_is_running: 2356.0010s
@ -45,9 +39,7 @@ How do I show only the ``n`` slowest tests?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
For example, to show only the **10** slowest tests, run nosetests with the For example, to show only the **10** slowest tests, run nosetests with the
``--timer-top-n`` flag. ``--timer-top-n`` flag::
.. code:: bash
nosetests --with-timer --timer-top-n 10 nosetests --with-timer --timer-top-n 10