LABGRID-PYTEST(7) | embedded testing | LABGRID-PYTEST(7) |
labgrid-pytest - labgrid-pytest labgrid integration for pytest
pytest --lg-env *.yaml
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.
Start tests with myconfig.yaml and directory tests:
.. code-block:: bash
$ pytest --lg-env myconfig.yaml tests
Rouven Czerwinski <r.czerwinski@pengutronix.de>
Organization: Labgrid-Project
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.
2017-04-15 | 0.0.1 |