#!/usr/bin/env ruby

require 'bundler/setup'

require 'rspec/core'
require 'pedant'
require 'pedant/platform'
require 'pedant/organization'
require 'pedant/reporting_command_line'
require 'pedant/reporting/platform'

Pedant.config.platform_class = Pedant::ReportingPlatform
Pedant.config.suite = "reporting"
ARGV.push("-c", "reporting_config.rb") unless ARGV.include?("-c")
Pedant.setup(ARGV, ["core_options", "reporting_options"])

puts Pedant::UI.new.info_banner

exit RSpec::Core::Runner.run(Pedant.config.rspec_args)
