-
Notifications
You must be signed in to change notification settings - Fork 9
Description
So at the panel discussion @matthewmcgarvey mentioned that he would love to have mocking and additional features available in specs.
I guess by "missing" he meant in reference to RSpec.
Luckily (!), @icy-arctic-fox wrote Spectator, which is a testing framework based on RSpec (> 3).
It has an incredible amount of RSpec features already available.
I guess one of the main decisions whether to switch from an stdlib testing library to an external one, is usually the amount of dependencies but in Lucky's case we are talking about a fully fledged web framework that should allow developers to develop apps as secure, convenient and fast as possible. If someone is looking for a solution that's as tiny as possible, Lucky might not be the optimal choice. There are other tiny web frameworks in Crystal that are focussing on that.
Thus, while the standard Crystal spec is functional and intentionally kept tiny, this doesn't mean that Lucky has to stuck with it.
Ruby's RSpec is also not the standard test library in Ruby but it is yet one of the (or the?) most popular test library.
Also Matthew is most likely not the only web dev who's missing convenient test features that would be solved by switching to Spectator (see here, here, here or various comments in this issue). Which is absolutely understandable, since tests/specs are giving security and allow us to develop better applications that are as stable as possible.
PS: Also using the non-intrusive expect syntax might be an advantage.
PPS: I absolutely understand that this might be a hot topic but I'm sure it it much better to have this discussion at this point than at a much later point where a full developed ecosystem might have been evolved that would make it even harder to switch. I guess a (slow) migration at this point might still be a realistic option and Lucky's users would gain a lot.
PPPS: Thank you so much for Lucky. 🙏 Really. Lucky is wonderful!