mountain_view icon indicating copy to clipboard operation
mountain_view copied to clipboard

Running the test suite

Open ChristineP2 opened this issue 6 years ago • 3 comments

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?

ChristineP2 avatar Dec 01 '18 05:12 ChristineP2

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 🤔

kitop avatar Dec 01 '18 17:12 kitop

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...

ghost avatar Dec 21 '18 22:12 ghost

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

kitop avatar Dec 22 '18 09:12 kitop