.\" Man page generated from reStructuredText. . . .nr rst2man-indent-level 0 . .de1 rstReportMargin \\$1 \\n[an-margin] level \\n[rst2man-indent-level] level margin: \\n[rst2man-indent\\n[rst2man-indent-level]] - \\n[rst2man-indent0] \\n[rst2man-indent1] \\n[rst2man-indent2] .. .de1 INDENT .\" .rstReportMargin pre: . RS \\$1 . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin] . nr rst2man-indent-level +1 .\" .rstReportMargin post: .. .de UNINDENT . RE .\" indent \\n[an-margin] .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]] .nr rst2man-indent-level -1 .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]] .in \\n[rst2man-indent\\n[rst2man-indent-level]]u .. .TH "LABGRID-PYTEST" "7" "2025" "" "labgrid" .SH NAME labgrid-pytest \- labgrid integration for pytest .SH LABGRID-PYTEST LABGRID INTEGRATION FOR PYTEST .SS SYNOPSIS .sp \fBpytest \-\-lg\-env\fP \fB*.yaml\fP .SS DESCRIPTION .sp Labgrid ships a pytest plugin to integrate with the pytest infrastructure. It is activated if the \fB\-\-lg\-env\fP parameter is supplied to the pytest command. .sp The labgrid plugin parses the supplied configuration yaml file as described in \fBlabgrid\-device\-config\fP(5) and allows the usage of the target and environment fixtures. The complete documentation is available at \X'tty: link https://labgrid.readthedocs.io/en/latest/usage.html#pytest-plugin'\fI\%https://labgrid.readthedocs.io/en/latest/usage.html#pytest\-plugin\fP\X'tty: link'\&. .SS EXAMPLES .sp Start tests with \fBmyconfig.yaml\fP and directory \fBtests\fP: .INDENT 0.0 .INDENT 3.5 .sp .EX $ pytest \-\-lg\-env myconfig.yaml tests .EE .UNINDENT .UNINDENT .SS SEE ALSO .sp \fBlabgrid\-device\-config\fP(5) .SH AUTHOR Jan Luebbe, Rouven Czerwinski .SH COPYRIGHT 2016-2025 Pengutronix, Jan Luebbe and Rouven Czerwinski .\" Generated by docutils manpage writer. .