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 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71
|
.\" 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" "" "0.0.1" "embedded testing"
.SH NAME
labgrid-pytest \- labgrid-pytest labgrid integration for pytest
.SH SYNOPSIS
.sp
\fBpytest \-\-lg\-env\fP \fB*.yaml\fP
.SH DESCRIPTION
.sp
Labgrid ships a pytest plugin to integrate with the pytest infrastructure. It is
activated if the \fI\-\-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
<https://labgrid.readthedocs.io/en/latest/usage.html#pytest\-plugin> \&.
.SH 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
.SH SEE ALSO
.sp
\fBlabgrid\-device\-config\fP(5)
.SH AUTHOR
Rouven Czerwinski <r.czerwinski@pengutronix.de>
Organization: Labgrid-Project
.SH COPYRIGHT
Copyright (C) 2016-2025 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.
.\" Generated by docutils manpage writer.
.
|