Is spork worth the hassle?

I spent hours and hours trying to configure spork to work for RSpec, work for Cucumber, reload models, so it does not need to be restarted all the time and not throw errors.

I spent so much time studying the solutions to my quirks that I could just wait for regular tests to load. In addition to everything, it has an annoying characteristic that when I debug, I enter commands into the terminal window, which I called Rspec, but the output is displayed in the Spork terminal window. Eesh.

I am very grateful for any piece of software that is being produced to help others and from the spork project, but just cannot understand whether it is worth continuing to work further.

EDIT

YES - SPORTS DEFINITELY CONTINUES THE EFFECT. After 4 days of installation, I finally managed to figure out all the problems, and this accelerated my testing incredibly. I really recommend it.

+4
source share
2 answers

I found out that Spork seems to work basically fine if you follow the TDD / BDD pattern, that is, you write your test first, give it a crash, and only then write the code. However, I do not always work this way - there are many situations where I need to write code before writing tests.

Fortunately, I found an almost perfect solution for my testing needs - Spin gem . It does not force you to enter into any workflow and just works.

+4
source

Give me CoreApp back - this is the full RSpec / Spork / Guard / Cucumber configuration.

I find it advisable that this speeds up most of the tests, but the disadvantage is that my tests are not designed to be "effective." Some people think that it is better to wait until the environment boots every time, but it takes 10-15 seconds to reboot on my MBP to restart env.

https://github.com/bsodmike/CoreApp

+1
source

Source: https://habr.com/ru/post/1381463/


All Articles