Add a `bin/test` executable to use Rails 5 Minitest report.
This commit is contained in:
parent
e6563bc4cb
commit
ccda4692b4
|
@ -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
|
||||
|
|
|
@ -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)
|
Loading…
Reference in New Issue