Skip to content

Commit c7e597f

Browse files
Run SBT example tests last to reduce wait time under some development circumstances
1 parent ee636dc commit c7e597f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/test_geophires_x.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,12 @@ def get_output_file_for_example(example_file: str):
168168
)
169169
)
170170

171+
# Run SBT examples last because they take an inordinately long time (tens of seconds even on a fast machine).
172+
# This reduces time spent waiting for tests to run if you are iterating on changes that affect non-SBT examples.
173+
for ef in [_ef for _ef in example_files if _ef.startswith('example_SBT')]:
174+
example_files.remove(ef)
175+
example_files.append(ef)
176+
171177
assert len(example_files) > 0 # test integrity check - no files means something is misconfigured
172178
regenerate_cmds = []
173179
for example_file_path in example_files:

0 commit comments

Comments
 (0)