require 'bacon'
require 'bacon/colored_output'

require 'simplecov'
require 'coveralls'

SimpleCov.start do
  self.formatter = SimpleCov::Formatter::MultiFormatter[
    SimpleCov::Formatter::HTMLFormatter,
    Coveralls::SimpleCov::Formatter
  ]

  # Exclude the testsuite itself.
  add_filter "/test/"
end

require 'ast'

require 'bacon'
require 'bacon/colored_output'

require 'simplecov'
require 'coveralls'

SimpleCov.start do
  self.formatter = SimpleCov::Formatter::MultiFormatter.new([
    SimpleCov::Formatter::HTMLFormatter,
    Coveralls::SimpleCov::Formatter
  ])

  # Exclude the testsuite itself.
  add_filter "/test/"
end

require 'ast'

Fix a deprecation warning of simpleCov
Fix a deprecation warning of simpleCov

`SimpleCov::Formatter::MultiFormatter[]` is deprecated.
So, this PR replaces it with `.new`.
See https://github.com/colszowka/simplecov/blob/cb0e62b37b63816d07bdb15f3ee88ceade0947e5/lib/simplecov/formatter/multi_formatter.rb#L27
