diff options
Diffstat (limited to 'tool/lib/test/unit.rb')
-rw-r--r-- | tool/lib/test/unit.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tool/lib/test/unit.rb b/tool/lib/test/unit.rb index 0bb1377679..6e4b643ad8 100644 --- a/tool/lib/test/unit.rb +++ b/tool/lib/test/unit.rb @@ -1441,6 +1441,14 @@ module Test end end + def inspect + "#<#{self.class.name}: " << + instance_variables.filter_map do |var| + next if var == :@option_parser # too big + "#{var}=#{instance_variable_get(var).inspect}" + end.join(", ") << ">" + end + ## # Top level driver, controls all output and filtering. |