File tree 3 files changed +33
-8
lines changed
3 files changed +33
-8
lines changed Original file line number Diff line number Diff line change @@ -11,3 +11,6 @@ source =
11
11
[report]
12
12
show_missing = true
13
13
precision = 2
14
+
15
+ [html]
16
+ show_contexts = True
Original file line number Diff line number Diff line change @@ -36,20 +36,42 @@ one or two development branches are actively maintained.
36
36
Running Tests
37
37
-------------
38
38
39
- * Note:* This section needs better instructions.
40
-
41
39
Run ` tox ` from within your checkout. This will run the tests across all
42
40
supported systems and attempt to build the docs.
43
41
44
- To run the tests for Python 2.x only:
42
+ For example, to run the test suite with your current Python runtime:
43
+
44
+ ``` shell
45
+ tox -e py
46
+ ```
47
+
48
+ If you wish to run multiple targets, you can do so by separating them with a
49
+ comma:
50
+
51
+ ``` shell
52
+ tox -e py312,coverage
53
+ ```
54
+
55
+ If you've already run the coverage target and want to see the results in HTML,
56
+ you can override ` tox.ini ` settings with the ` commands ` option:
57
+
58
+ ``` shell
59
+ tox -e coverage -x testenv:coverage.commands=" coverage html"
60
+ ```
61
+
62
+ To build the docs:
45
63
46
- $ tox py2-cover
64
+ ``` shell
65
+ tox -e docs
66
+ ```
47
67
48
- To build the docs for Python 3.x only :
68
+ List all possible targets :
49
69
50
- $ tox py3-docs
70
+ ``` shell
71
+ tox list # or `tox l`
72
+ ```
51
73
52
- See the ` tox.ini ` file for details.
74
+ See ` tox.ini ` file for details, or < https://tox.wiki/ > for general ` tox ` usage .
53
75
54
76
55
77
Building documentation for a Pylons Project project
Original file line number Diff line number Diff line change @@ -8,4 +8,4 @@ license_file = docs/license.txt
8
8
python_files = test_*.py
9
9
testpaths =
10
10
tests
11
- addopts = -W always --cov --cov-report =term-missing
11
+ addopts = -W always --cov --cov-context =test -- cov- report =term-missing
You can’t perform that action at this time.
0 commit comments