Add a `bin/test` executable to use Rails 5 Minitest report.

This commit is contained in:
Lucas Mazza 2016-03-09 11:16:21 -03:00
parent e6563bc4cb
commit ccda4692b4
2 changed files with 14 additions and 1 deletions

View File

@ -33,7 +33,7 @@ before_install: "rm ${BUNDLE_GEMFILE}.lock"
before_script: "bundle update"
script: "bundle exec rake test"
script: "bin/test"
notifications:
email: false

13
bin/test Executable file
View File

@ -0,0 +1,13 @@
#!/usr/bin/env ruby
$: << File.expand_path(File.expand_path('../../test', __FILE__))
require 'bundler/setup'
begin
require 'rails/test_unit/minitest_plugin'
rescue LoadError
exec 'rake'
end
Rails::TestUnitReporter.executable = 'bin/test'
exit Minitest.run(ARGV)