mirror of
https://github.com/ThrowTheSwitch/Unity
synced 2026-09-17 21:42:01 -04:00
Commit e47ac34 ("Fix default path in unity test summarizer") moved the
result-directory and root-path defaults off ARGV and onto the args array
that ARGV.partition produces, but both readers were left on ARGV. The
defaults are therefore computed and discarded: running the summarizer
with no arguments raises NoMethodError on nil, and passing only a result
directory leaves root nil so failures print without the path prefix the
usage text promises. Passing an option such as --verbose also shifts the
option string into ARGV[0] and breaks the result glob.
Read args[0] and args[1] so the assigned defaults are the values used.
Add test/tests/test_unity_test_summary.rb covering both defaults; it runs
under the existing test:scripts task.
Signed-off-by: manon <youdie006@users.noreply.github.com>