Skip to content

Commit

Permalink
Include total test count in output
Browse files Browse the repository at this point in the history
  • Loading branch information
jerry-git committed Mar 28, 2020
1 parent 37005b5 commit 604cca1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pytest_split/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def pytest_collection_modifyitems(session, config, items):
if store_durations:
# Don't split if we are storing durations
return

total_tests_count = len(items)
if splits and group:
with open(durations_report_path) as f:
stored_durations = OrderedDict(json.load(f))
Expand All @@ -70,7 +70,7 @@ def pytest_collection_modifyitems(session, config, items):
terminal_reporter = config.pluginmanager.get_plugin("terminalreporter")
terminal_writer = create_terminal_writer(config)
message = terminal_writer.markup(
" Running group {}/{} ({} tests)\n".format(group, splits, len(items))
" Running group {}/{} ({}/{} tests)\n".format(group, splits, len(items), total_tests_count)
)
terminal_reporter.write(message)

Expand Down

0 comments on commit 604cca1

Please sign in to comment.