Debian Codegraph @

man/labgrid-pytest.7

raw
1 .\" Man page generated from reStructuredText.
2 .
3 .
4 .nr rst2man-indent-level 0
5 .
6 .de1 rstReportMargin
7 \\$1 \\n[an-margin]
8 level \\n[rst2man-indent-level]
9 level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
10 -
11 \\n[rst2man-indent0]
12 \\n[rst2man-indent1]
13 \\n[rst2man-indent2]
14 ..
15 .de1 INDENT
16 .\" .rstReportMargin pre:
17 . RS \\$1
18 . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin]
19 . nr rst2man-indent-level +1
20 .\" .rstReportMargin post:
21 ..
22 .de UNINDENT
23 . RE
24 .\" indent \\n[an-margin]
25 .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]]
26 .nr rst2man-indent-level -1
27 .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
28 .in \\n[rst2man-indent\\n[rst2man-indent-level]]u
29 ..
30 .TH "LABGRID-PYTEST" "7" "2025" "" "labgrid"
31 .SH NAME
32 labgrid-pytest \- labgrid integration for pytest
33 .SH LABGRID-PYTEST LABGRID INTEGRATION FOR PYTEST
34 .SS SYNOPSIS
35 .sp
36 \fBpytest \-\-lg\-env\fP \fB*.yaml\fP
37 .SS DESCRIPTION
38 .sp
39 Labgrid ships a pytest plugin to integrate with the pytest infrastructure. It is
40 activated if the \fB\-\-lg\-env\fP parameter is supplied to the pytest command.
41 .sp
42 The labgrid plugin parses the supplied configuration yaml file as described in
43 \fBlabgrid\-device\-config\fP(5) and allows the usage of the target and environment
44 fixtures.
45 The complete documentation is available at
46 \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'\&.
47 .SS EXAMPLES
48 .sp
49 Start tests with \fBmyconfig.yaml\fP and directory \fBtests\fP:
50 .INDENT 0.0
51 .INDENT 3.5
52 .sp
53 .EX
54 $ pytest \-\-lg\-env myconfig.yaml tests
55 .EE
56 .UNINDENT
57 .UNINDENT
58 .SS SEE ALSO
59 .sp
60 \fBlabgrid\-device\-config\fP(5)
61 .SH AUTHOR
62 Jan Luebbe, Rouven Czerwinski
63 .SH COPYRIGHT
64 2016-2025 Pengutronix, Jan Luebbe and Rouven Czerwinski
65 .\" Generated by docutils manpage writer.
66 .