rubocop / minitest-style-guide

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

Added duplicated tests run hint. #46

Closed ignacio-chiazzo closed 2 years ago

ignacio-chiazzo commented 2 years ago

Minitest uses Ruby classes, if a Minitest class inherits from another class, it will also inherit its methods causing Minitest to run the parent's tests twice. In some cases, we want them to run them twice, but most of the time, we don't.

This warning is based on a Rubocop rule for duplicated tests. This blog post and this library contain more information.

Fixes https://github.com/rubocop/minitest-style-guide/issues/45

koic commented 2 years ago

Thanks. Can you squash your commits into one?

koic commented 2 years ago

👍