Skip to content

Commit b46f734

Browse files
authored
Tests: correctly mark which tests are slow (#8197)
Previously various slow tests were included with fast tests, resulting in non-optimal parallelization.
1 parent f66f11f commit b46f734

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

runtests.py

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@
2525
STUBGEN_PY = 'StubgenPythonSuite'
2626
MYPYC_RUN = 'TestRun'
2727
MYPYC_RUN_MULTI = 'TestRunMultiFile'
28+
MYPYC_EXTERNAL = 'TestExternal'
29+
MYPYC_COMMAND_LINE = 'TestCommandLine'
30+
ERROR_STREAM = 'ErrorStreamSuite'
2831

2932

3033
ALL_NON_FAST = [CMDLINE,
@@ -36,7 +39,10 @@
3639
STUBGEN_CMD,
3740
STUBGEN_PY,
3841
MYPYC_RUN,
39-
MYPYC_RUN_MULTI]
42+
MYPYC_RUN_MULTI,
43+
MYPYC_EXTERNAL,
44+
MYPYC_COMMAND_LINE,
45+
ERROR_STREAM]
4046

4147
# We split the pytest run into three parts to improve test
4248
# parallelization. Each run should have tests that each take a roughly similar
@@ -55,7 +61,15 @@
5561
STUBGEN_PY]),
5662
# Test cases that may take seconds to run each
5763
'pytest-slow': 'pytest -k "%s"' % ' or '.join(
58-
[SAMPLES, TYPESHED, PEP561, DAEMON, MYPYC_RUN, MYPYC_RUN_MULTI]),
64+
[SAMPLES,
65+
TYPESHED,
66+
PEP561,
67+
DAEMON,
68+
MYPYC_RUN,
69+
MYPYC_RUN_MULTI,
70+
MYPYC_EXTERNAL,
71+
MYPYC_COMMAND_LINE,
72+
ERROR_STREAM]),
5973
}
6074

6175
# Stop run immediately if these commands fail

0 commit comments

Comments
 (0)