| 1 |
:orphan: |
| 2 |
|
| 3 |
================ |
| 4 |
labgrid-pytest |
| 5 |
================ |
| 6 |
|
| 7 |
labgrid-pytest labgrid integration for pytest |
| 8 |
============================================= |
| 9 |
|
| 10 |
SYNOPSIS |
| 11 |
-------- |
| 12 |
|
| 13 |
``pytest --lg-env`` ``*.yaml`` |
| 14 |
|
| 15 |
DESCRIPTION |
| 16 |
----------- |
| 17 |
Labgrid ships a pytest plugin to integrate with the pytest infrastructure. It is |
| 18 |
activated if the ``--lg-env`` parameter is supplied to the pytest command. |
| 19 |
|
| 20 |
The labgrid plugin parses the supplied configuration yaml file as described in |
| 21 |
``labgrid-device-config``\(5) and allows the usage of the target and environment |
| 22 |
fixtures. |
| 23 |
The complete documentation is available at |
| 24 |
https://labgrid.readthedocs.io/en/latest/usage.html#pytest-plugin. |
| 25 |
|
| 26 |
EXAMPLES |
| 27 |
-------- |
| 28 |
|
| 29 |
Start tests with ``myconfig.yaml`` and directory ``tests``: |
| 30 |
|
| 31 |
.. code-block:: bash |
| 32 |
|
| 33 |
$ pytest --lg-env myconfig.yaml tests |
| 34 |
|
| 35 |
|
| 36 |
SEE ALSO |
| 37 |
-------- |
| 38 |
|
| 39 |
``labgrid-device-config``\(5) |