Skip to content

Commit ef86cd0

Browse files
committed
Remove coding tests, edit noxfile tests docstring
1 parent 05099db commit ef86cd0

File tree

2 files changed

+5
-15
lines changed

2 files changed

+5
-15
lines changed

lib/iris/tests/runner/_runner.py

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -35,27 +35,20 @@ class TestRunner:
3535
("system-tests", "s", "Run the limited subset of system tests."),
3636
("gallery-tests", "e", "Run the gallery code tests."),
3737
("default-tests", "d", "Run the default tests."),
38-
(
39-
"coding-tests",
40-
"c",
41-
"Run the coding standards tests. (These are a "
42-
"subset of the default tests.)",
43-
),
4438
(
4539
"num-processors=",
4640
"p",
4741
"The number of processors used for running " "the tests.",
4842
),
4943
("create-missing", "m", "Create missing test result files."),
50-
("coverage", "l", "Enable coverage testing"),
44+
("coverage", "c", "Enable coverage testing"),
5145
]
5246
boolean_options = [
5347
"no-data",
5448
"system-tests",
5549
"stop",
5650
"gallery-tests",
5751
"default-tests",
58-
"coding-tests",
5952
"create-missing",
6053
"coverage",
6154
]
@@ -66,7 +59,6 @@ def initialize_options(self):
6659
self.system_tests = False
6760
self.gallery_tests = False
6861
self.default_tests = False
69-
self.coding_tests = False
7062
self.num_processors = None
7163
self.create_missing = False
7264
self.coverage = False
@@ -87,8 +79,6 @@ def finalize_options(self):
8779
tests.append("system")
8880
if self.default_tests:
8981
tests.append("default")
90-
if self.coding_tests:
91-
tests.append("coding")
9282
if self.gallery_tests:
9383
tests.append("gallery")
9484
if not tests:
@@ -112,8 +102,6 @@ def run(self):
112102
tests.append("lib/iris/tests/system_test.py")
113103
if self.default_tests:
114104
tests.append("lib/iris/tests")
115-
if self.coding_tests:
116-
tests.append("lib/iris/tests/test_coding_standards.py")
117105
if self.gallery_tests:
118106
import iris.config
119107

noxfile.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,8 +175,10 @@ def prepare_venv(session: nox.sessions.Session) -> None:
175175
@nox.session(python=PY_VER, venv_backend="conda")
176176
def tests(session: nox.sessions.Session):
177177
"""
178-
Perform iris system, integration and unit tests with coverage testing
179-
enabled.
178+
Perform iris system, integration and unit tests.
179+
180+
Coverage testing is enabled if the COVERAGE environment variable is set to
181+
True.
180182
181183
Parameters
182184
----------

0 commit comments

Comments
 (0)