Gem Spork 为什么要每跑一次就 fork 一次?

hoiyd · February 13, 2015 · Last by hoiyd replied at February 15, 2015 · 1612 hits

spork 的官方文档 (https://github.com/sporkrb/spork:) 里有这么一句话

it forks a copy of the server each time you run your tests.

为什么需要这样的设定呢?

forks before each run to ensure a clean testing state

项目介绍里面说了啊

#1 楼 @ch3n 如果每次都 fork,开销会不会有点大?

感觉想要保持 clean testing state 没必要每次都 fork 一个新的 #纯感觉哈

You need to Sign in before reply, if you don't have an account, please Sign up first.