3 ms·
This looks great! Is there a way to make it work with existing specced code? I already have a large codebase with lots of fdefs. Can Ghostweel work with them wi
by divs1210 8y ago
This looks great!
Is there a way to make it work with existing specced code? I already have a large codebase with lots of fdefs.
Can Ghostweel work with them without modification?
Thanks!
- gnl 8y agoThe short answer is "more or less", the longer answer is the second one in the FAQ: https://github.com/gnl/ghostwheel#faq https://github.com/gnl/ghostwheel#faq
- gnl 8y agoAt the moment you can set the gspec to nil, but that would simply disable s/fdef generation and all of the spec-related magic. I'm planning to introduce a configuration option with the next release to force Ghostwheel to trust that there's an external s/fdef for that function and still do all the spec stuff. There may be some limitations on this compared to using inline gspecs – I have to play around with it a bit, but I think it should work fine. Until then, you can still use Ghostwheel for tracing and side effect detection though.