Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added new duplicated_test_run cop #164

Commits on Mar 30, 2022

  1. Added new Minitest/DuplicateTestRun cop.

    If a Minitest class inherits from another class, it will also inherit its methods causing Minitest to run the parent’s tests methods twice.
    
    This PR detects when there are two tests classes, one inherits from the other, and both have tests methods.  MinitestRubocop will add an offence to the Child class in such a case.
    
    Note that this cop only works if both classes are on the same file.
    ignacio-chiazzo committed Mar 30, 2022
    Configuration menu
    Copy the full SHA
    98ebb10 View commit details
    Browse the repository at this point in the history