I open sourced a new tool! It runs your tests to check if your documentation is correct. Check it out https://github.com/backus/yardcheck …pic.twitter.com/I4k8PaK0lT
Thanks! It bugged me every time I ran into stale YARD docs. The metadata is easy to get via YARD couldn't believe there wasn't a solution.
-
-
My tests are all in Minitest. I don't suppose that would work with this eh?
-
1/ It doesn't but it could be adapter for that in the future. Right now it basically just invokes rspec's runner.
-
2/ I wrote it to enable method tracing around each example. This makes it not unbearably slow. Would need to find equivalent for minitest
-
Have a look at my gem state_inspector https://github.com/danielpclark/state_inspector … … it uses the method decorator pattern to observe method calls.
-
That might give you much better performance.
-
Neat I'll check it out. Have you benched it against using `TracePoint`?
-
No… TracePoint is still something I've never tried. I do know my example at the end recorded ~8000 method calls to a log in little

-
Nice. `TracePoint` is pretty simple you should check it out. I extract parameter values in 4 lines of code! https://git.io/vSkot
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
