|
| 1 | +pytest-echo: echoing environment variables, package version and django settings |
| 2 | +=============================================================================== |
| 3 | + |
| 4 | +Usage |
| 5 | +----- |
| 6 | + |
| 7 | +install via:: |
| 8 | + |
| 9 | + pip install pytest-echo |
| 10 | + |
| 11 | + |
| 12 | + |
| 13 | +The plugin provides ability to print some extra information prior to run the tests. |
| 14 | + |
| 15 | + |
| 16 | +Examples |
| 17 | +-------- |
| 18 | + |
| 19 | +Dump environment variables |
| 20 | +~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 21 | + |
| 22 | +.. code-block:: python |
| 23 | +
|
| 24 | + $ py.test --echo-env=HOME |
| 25 | + ============================= test session starts ========================= |
| 26 | + platform linux2 -- Python 2.7.4 -- py-1.4.22 -- pytest-2.6.0 -- /bin/python |
| 27 | + HOME: /home/sax |
| 28 | + plugins: echo, pydev, cov, cache, django |
| 29 | +
|
| 30 | +
|
| 31 | +Dump package version |
| 32 | +~~~~~~~~~~~~~~~~~~~~ |
| 33 | + |
| 34 | +.. code-block:: python |
| 35 | +
|
| 36 | + $ py.test --echo-version=pytest_echo |
| 37 | + ============================= test session starts ========================= |
| 38 | + platform linux2 -- Python 2.7.4 -- py-1.4.22 -- pytest-2.6.0 -- /bin/python |
| 39 | + pytest_echo: 0.1 |
| 40 | + plugins: echo, pydev, cov, cache, django |
| 41 | +
|
| 42 | +
|
| 43 | +Dump django settings |
| 44 | +~~~~~~~~~~~~~~~~~~~~ |
| 45 | + |
| 46 | +.. code-block:: python |
| 47 | +
|
| 48 | + $ py.test --echo-settings=DEBUG |
| 49 | + ============================= test session starts ========================= |
| 50 | + platform linux2 -- Python 2.7.4 -- py-1.4.22 -- pytest-2.6.0 -- /bin/python |
| 51 | + DEBUG: False |
| 52 | + plugins: echo, pydev, cov, cache, django |
| 53 | +
|
| 54 | +
|
| 55 | +
|
| 56 | +
|
| 57 | +
|
| 58 | +Links |
| 59 | +~~~~~ |
| 60 | + |
| 61 | ++--------------------+----------------+--------------+----------------+ |
| 62 | +| Project home page: |https://github.com/saxix/pytest-echo | |
| 63 | ++--------------------+---------------+--------------------------------+ |
| 64 | +| Issue tracker: |https://github.com/saxix/pytest-echo/issues?sort| |
| 65 | ++--------------------+---------------+--------------------------------+ |
| 66 | +| Download: |http://pypi.python.org/pypi/pytest-echo/ | |
| 67 | ++--------------------+---------------+--------------------------------+ |
| 68 | +| Documentation: |https://pytest-echo.readthedocs.org/en/latest/ | |
| 69 | ++--------------------+---------------+--------------+-----------------+ |
0 commit comments