Seeing how slowly the specs were running, I decided to extract most of the code from main.rb into a CLI class. bundle exec rspec now runs in <3 seconds instead of >16 seconds.
I am not too happy about the current state of the code. I think root_path is being passed around too much, and perhaps I shouldn’t insist on it being a Pathname instance. Setting this PR as draft for now.
Seeing how slowly the specs were running, I decided to extract most of the code from main.rb into a
CLI
class.bundle exec rspec
now runs in <3 seconds instead of >16 seconds.I am not too happy about the current state of the code. I think
root_path
is being passed around too much, and perhaps I shouldn’t insist on it being aPathname
instance. Setting this PR as draft for now.