Hello, I heard that Spectus is using fork() to test each expectation in order to prevent from side effects. And so my question is: what about the performances?
I mean, for comparaison RSpec which is do not preventing from side effects don't use this UNIX function... and that's a positive point for speeding up test suites.
@citron1 Hello, and welcome there! Yup I agree, this fork() is quite costly. However it is not enable by default! :x:
So if for instance you want to express an absolute requirement without any isolation, then you can call the MUST method (without ! at the end). Otherwise, the MUST! method is also available, to perform the test inside a sub-process, preventing any side effects. :smile: