mountain_view
mountain_view copied to clipboard
Running the test suite
In order to get the tests to run in the test runner for RubyMine, I had to add gem 'tzinfo-data'
and gem 'minitest-reporters', '>= 0.5.0'
to the Gemfile
and require 'minitest/reporters'
and Minitest::Reporters.use!
to test_helper.rb
Am I doing something wrong, or is there a better way to run the tests?
Mmm, that is strange. You shouldn't need to add anything to run the test suite.
Seems like RubyMine requires minitest-reporters
to be installed: https://www.jetbrains.com/help/ruby/minitest-reporters.html
Couldn't find anything about tzinfo-data
, that has me a bit moe confused. What version of Rails are you running against?
I wouldn't be opposed to add minitest-reporters
as a development depencency in gemspec
file, and the tweaks in test_helper.rb
if that helps development experience though.
But would like to understand what's the deal with tzinfo-data
🤔
Might have figured out at least the tz-info-data part... it is apparently needed for windows as it doesn't include zoneinfo files. I am using a windows laptop...
Oh! Great find!! Then we can add it to the gemfile with a platform specific rule, like
gem "tzinfo-data", :platforms => [:mingw, :x64_mingw, :mswin]
More info about that option in the bundler docs