Open dgollahon opened 5 years ago
I thought this should perhaps rather be a toggleable feature of rspec itself, went looking for it, and found some interesting discussion of the idea and some worthwhile counter-arguments in https://github.com/rspec/rspec-core/issues/404 and https://github.com/rspec/rspec-core/issues/598.
Cool, thanks for the links! Will read when I get a chance and leave my opinion for what rspectre
should eventually do.
Even with dynamic runtime analysis, there might be some false positives and this might be out of scope for what this project is about, but I could consider trying to detect missing expects / examples without assertions. It's hard to do accurately, statically (see: https://github.com/rubocop-hq/rubocop-rspec/issues/208) but might be something that could be caught here more precisely.