I have recently created an editor (Neovim) plugin to integrate with Rails default testing framework - minitest. Here is the demo video. With this plugin, I can open my test file, and run all the tests or a single test and the result will be reflected inside the test file itself.
Things are going fine but I am hoping to make the process a little faster. If you watch the video you can see that the time taken from the start of running a single test case doing one assertion until the result is reflected in the editor takes around 4-5 seconds.
I did some checking on the time taken running this command:
Gem load time (this is a very new project with only a few additional gems installed)
Number of fixtures to load (I tried only load the fixtures needed for the current test file, but it doesn’t reduce the time much, again, this is a new project with only a few fixtures)
Appreciate it if anyone can give me some suggestions on if speeding up the test boot time is possible.
Is the slowness with all Macs, or only Intel or Mac Silicon? I experience the same issue with slow boot/test times with my quad-core 2017 intel i7 Mac. I’m curious if this is solved with the newer M1 or M2?