Show More
@@ -118,6 +118,20 b' def pytest_collection_modifyitems(sessio' | |||||
118 | i for i in items if getattr(i.obj, '__test__', True)] |
|
118 | i for i in items if getattr(i.obj, '__test__', True)] | |
119 | items[:] = remaining |
|
119 | items[:] = remaining | |
120 |
|
120 | |||
|
121 | # NOTE(marcink): custom test ordering, db tests and vcstests are slowes and should | |||
|
122 | # be executed at the end for faster test feedback | |||
|
123 | def sorter(item): | |||
|
124 | pos = 0 | |||
|
125 | key = item._nodeid | |||
|
126 | if key.startswith('rhodecode/tests/database'): | |||
|
127 | pos = 1 | |||
|
128 | elif key.startswith('rhodecode/tests/vcs_operations'): | |||
|
129 | pos = 2 | |||
|
130 | ||||
|
131 | return pos | |||
|
132 | ||||
|
133 | items.sort(key=sorter) | |||
|
134 | ||||
121 |
|
135 | |||
122 | def pytest_generate_tests(metafunc): |
|
136 | def pytest_generate_tests(metafunc): | |
123 |
|
137 |
General Comments 0
You need to be logged in to leave comments.
Login now