1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
|
================
labgrid-pytest
================
labgrid-pytest labgrid integration for pytest
=============================================
:Author: Rouven Czerwinski <r.czerwinski@pengutronix.de>
:organization: Labgrid-Project
:Date: 2017-04-15
:Copyright: Copyright (C) 2016-2017 Pengutronix. This library is free software;
you can redistribute it and/or modify it under the terms of the GNU
Lesser General Public License as published by the Free Software
Foundation; either version 2.1 of the License, or (at your option)
any later version.
:Version: 0.0.1
:Manual section: 7
:Manual group: embedded testing
SYNOPSIS
--------
``pytest --lg-env`` ``*.yaml``
DESCRIPTION
-----------
Labgrid ships a pytest plugin to integrate with the pytest infrastructure. It is
activated if the `--lg-env` parameter is supplied to the pytest command.
The labgrid plugin parses the supplied configuration yaml file as described in
``labgrid-device-config``\(5) and allows the usage of the target and environment
fixtures.
The complete documentation is available at
https://labgrid.readthedocs.io/en/latest/usage.html#pytest-plugin.
EXAMPLES
--------
Start tests with ``myconfig.yaml`` and directory ``tests``:
.. code-block:: bash
$ pytest --lg-env myconfig.yaml tests
SEE ALSO
--------
``labgrid-device-config``\(5)
|