use spec reporter on Github to better spot where a build hangs
MODIFY
.github/workflows/build.yml
.github/workflows/build.yml
@@ -42,6 +42,8 @@ jobs:
- name: Run beetle gem tests
run: bundle exec rake test
+ env:
+ MINITEST_REPORTER: SpecReporter
- name: Run beetle failover tests
run: bundle exec cucumber || (tail -n 100 tmp/*.{log,output}; false)

MODIFY
beetle.gemspec
beetle.gemspec
@@ -36,6 +36,7 @@ Gem::Specification.new do |s|
s.add_development_dependency "daemons", ">= 1.2.0"
s.add_development_dependency "i18n"
s.add_development_dependency "minitest", "~> 5.1"
+ s.add_development_dependency "minitest-reporters"
s.add_development_dependency "mocha", "~> 1.14"
s.add_development_dependency "mysql2", "~> 0.5"
s.add_development_dependency "rake", "~> 13.0"

MODIFY
test/test_helper.rb
test/test_helper.rb
@@ -7,9 +7,15 @@ end
require 'minitest/autorun'
require 'minitest/unit'
-require 'minitest/pride' if ENV['RAINBOW_COLORED_TESTS'] == "1" && $stdout.tty?
require 'mocha/minitest'
+require 'minitest/reporters'
+if ENV['MINITEST_REPORTER']
+ Minitest::Reporters.use!
+else
+ Minitest::Reporters.use!([Minitest::Reporters::DefaultReporter.new])
+end
+
require File.expand_path(File.dirname(__FILE__) + '/../lib/beetle')
require 'eventmachine'

use spec reporter on Github to better spot where a build hangs