artemis icon indicating copy to clipboard operation
artemis copied to clipboard

Re-write the tests for Railtie in Rspec or the rest of the tests in Minitest

Open yuki24 opened this issue 6 years ago • 0 comments

I had to use Minitest to move quickly and write tests for Artemis::Railtie, but obviously it is very odd to have two different testing frameworks in one gem. Here are some considerations:

  • Rspec does not have out-of-box support for Railtie testing and would require a significant amount of exploration and additional code
  • Rspec does not have a parallel test runner, which makes the test suite very slow (each Railtie test runs rails new to fully replicate a Rails app)
  • MInitest does not have a nice command that runs a single spec (Rspec is very good at this and Minitest is way behind)
  • The expect syntax generates an error message that's a lot more helpful than a simple assert

yuki24 avatar Oct 02 '18 03:10 yuki24