module TestOutputParser

Constants

VERSION

Public Class Methods

count(test_output) click to toggle source
# File lib/test_output_parser.rb, line 56
def self.count(test_output)
  summary = Summary.new
  test_output = test_output.encode('UTF-8', 'binary', invalid: :replace, undef: :replace, replace: '')

  TestOutputParser::Framework::RSpec.count(test_output, summary)
  TestOutputParser::Framework::TestUnit.count(test_output, summary)
  TestOutputParser::Framework::JUnit.count(test_output, summary)

  summary.to_hash
end