rubocop / minitest-style-guide

Best practices for writing your tests
https://minitest.rubystyle.guide
70 stars 15 forks source link

Avoid lifecycle methods not intended for test developers #47

Closed andyw8 closed 1 year ago

andyw8 commented 2 years ago

The following methods have a note that they are "These are meant for library writers, NOT for regular test authors."

https://ruby-doc.org/stdlib-3.1.2/libdoc/minitest/rdoc/Minitest/Test/LifecycleHooks.html

I suspect people may incorrectly use these because are similarly named to the before and after hooks in RSpec.

(I think this would be a helpful addition to rubocop-minitest).