File tree Expand file tree Collapse file tree 5 files changed +122
-0
lines changed Expand file tree Collapse file tree 5 files changed +122
-0
lines changed Original file line number Diff line number Diff line change
1
+ .. _`advanceduser` :
2
+
3
+ Advanced User
4
+ =============
5
+
6
+ * Plugin recommendations
7
+ * conftest.py
8
+ * .ini config
9
+ * Adding extra functionality to marks
10
+ * Advanced parametrize
11
+
12
+
13
+ More on fixtures:
14
+
15
+ * Defining fixture scope
16
+ * Parametrized fixtures
17
+
18
+
19
+ Test suite speed:
20
+
21
+ * Running tests in parallel
22
+ * Profiling slow tests
23
+
24
+
25
+ Integrating testing into development:
26
+
27
+ * Testing against multiple Python interpreters with Tox
28
+ * Continuous integration (CI) systems
29
+ * Test coverage
30
+ * Debugging
31
+ * Python warnings
32
+ * Logging
33
+ * Flaky tests
34
+
35
+
36
+ Different styles of testing:
37
+
38
+ * Mock
39
+ * GUI testing
40
+ * Web browser testing
41
+ * Running unittest/nose tests
42
+ * Migrating from unittest to pytest
43
+ * Migrating from nose to pytest
44
+ * Running non-Python tests
45
+ * Running doctests
46
+ * Behaviour-driven development (BDD) style tests
47
+ * Property-based testing (such as Hypothesis)
Original file line number Diff line number Diff line change
1
+ .. _`contributor` :
2
+
3
+ Contributor
4
+ ===========
5
+
6
+ * Setting up a development environment
7
+ * Contribution suggestions
8
+ * Git branch guide
9
+ * Preparing a pull request
10
+ * Project organisation
11
+ * Pytest history
12
+ * Projects that use pytest
Original file line number Diff line number Diff line change @@ -36,26 +36,48 @@ If you get an error checkout :ref:`installation issues`.
36
36
Audiences
37
37
---------
38
38
39
+
39
40
User
40
41
~~~~
41
42
42
43
This section covers the basics to get you running and writing automated tests
43
44
in pytest.
44
45
46
+ :ref: `user `
47
+
48
+
45
49
Advanced User
46
50
~~~~~~~~~~~~~
47
51
48
52
This section dives deeper into pytest features such as fixtures and
49
53
parametrization, how to extend pytest through hooks and gives advice on
50
54
different styles of testing.
51
55
56
+ :ref: `advanceduser `
57
+
58
+
52
59
Plugin Author
53
60
~~~~~~~~~~~~~
54
61
55
62
This section guides you in creating plugins to customize and extend pytest.
56
63
64
+ :ref: `pluginauthor `
65
+
66
+
57
67
Contributor
58
68
~~~~~~~~~~~
59
69
60
70
If you are interested in contributing to pytest, this section will point you in
61
71
the right direction.
72
+
73
+ :ref: `contributor `
74
+
75
+
76
+
77
+ References
78
+ ----------
79
+
80
+ * Command-line options
81
+ * Pytest namespace
82
+ * Hooks
83
+ * Built-in fixtures
Original file line number Diff line number Diff line change
1
+ .. _`pluginauthor` :
2
+
3
+ Plugin Author
4
+ =============
5
+
6
+ * Get started with the Cookiecutter template
7
+ * Introduction to hooks
8
+ * Registering a plugin with pytest (setup.py)
9
+ * Recommended practice for publishing (moving to pytest-dev)
10
+ * Adding a command-line option
11
+ * Testing plugins
12
+ * Using the pytest cache
Original file line number Diff line number Diff line change
1
+ .. _`user` :
2
+
3
+ User
4
+ ====
5
+
6
+ Writing tests
7
+ -------------
8
+
9
+ * Assert statements
10
+ * Test naming conventions and discovery
11
+ * Test directory structure
12
+ * Asserting about exceptions with pytest.raises
13
+ * Using pytest.mark to group tests
14
+ * Skip and skipif marks
15
+ * xfail mark
16
+ * parametrize basics
17
+ * Fixture basics
18
+ * Fixture finalizers
19
+ * Monkeypatch fixture
20
+
21
+
22
+ Running tests
23
+ -------------
24
+
25
+ * Most useful command-line options
26
+ * IDE integration
27
+ * Types of test results
28
+ * Stdout capturing
29
+ * What happens when you press Ctrl-C?
You can’t perform that action at this time.
0 commit comments