RuboCop // Docs
Home
Style Guides
Ruby Rails RSpec Minitest
API Docs
Projects
RuboCop RuboCop AST RuboCop Capybara RuboCop factory_bot RuboCop Minitest RuboCop Performance RuboCop Rails RuboCop Rake RuboCop RSpec RuboCop RSpec Rails RuboCop Thread Safety
Community
GitHub Org Chat (Gitter) Open Collective

RuboCop Minitest

    • Home
    • Installation
    • Usage
    • Cops
    • Cops Documentation
      • Minitest
RuboCop Minitest 0.25
  • RuboCop
    • default
    • 1.75
    • 1.74
    • 1.73
    • 1.72
    • 1.71
    • 1.70
    • 1.69
    • 1.68
    • 1.67
    • 1.66
    • 1.65
    • 1.64
    • 1.63
    • 1.62
    • 1.61
    • 1.60
    • 1.0
  • RuboCop AST
    • master
    • 1.12
    • 1.11
    • 1.10
    • 1.9
    • 1.8
    • 1.7
    • 1.6
    • 1.5
    • 1.4
    • 1.3
    • 1.2
    • 1.1
    • 1.0
  • RuboCop Capybara
    • default
    • 2.21
    • 2.20
    • 2.19
    • 2.18
    • 2.17
  • RuboCop factory_bot
    • default
    • 2.26
    • 2.25
    • 2.24
    • 2.23
    • 2.22
  • RuboCop Minitest
    • default
    • 0.38
    • 0.37
    • 0.36
    • 0.35
    • 0.34
    • 0.33
    • 0.32
    • 0.31
    • 0.30
    • 0.29
    • 0.28
    • 0.27
    • 0.26
    • 0.25
  • RuboCop Packaging
    • master
  • RuboCop Performance
    • default
    • 1.25
    • 1.24
    • 1.23
    • 1.22
    • 1.21
    • 1.20
    • 1.19
    • 1.18
    • 1.17
    • 1.16
    • 1.15
    • 1.14
    • 1.13
    • 1.12
  • RuboCop Rails
    • default
    • 2.31
    • 2.30
    • 2.29
    • 2.28
    • 2.27
    • 2.26
    • 2.25
    • 2.24
    • 2.23
    • 2.22
    • 2.21
    • 2.20
    • 2.19
    • 2.18
    • 2.17
    • 2.16
    • 2.15
    • 2.14
  • RuboCop RSpec
    • default
    • 3.5
    • 3.4
    • 3.3
    • 3.2
    • 3.1
    • 3.0
    • 2.31
    • 1.44
  • RuboCop RSpec Rails
    • default
    • 2.30
    • 2.29
    • 2.28
  • RuboCop Thread Safety
  • RuboCop Minitest
  • Cops
default 0.38 0.37 0.36 0.35 0.34 0.33 0.32 0.31 0.30 0.29 0.28 0.27 0.26 0.25
Edit this Page

Cops

In RuboCop lingo the various checks performed on the code are called cops. Each cop is responsible for detecting one particular offense. RuboCop Minitest has only one Minitest department.

Minitest

Minitest cops check for Minitest best practices and coding conventions. Many of the them are based on the Minitest Style Guide.

Department Minitest

  • Minitest/AssertEmpty

  • Minitest/AssertEmptyLiteral

  • Minitest/AssertEqual

  • Minitest/AssertInDelta

  • Minitest/AssertIncludes

  • Minitest/AssertInstanceOf

  • Minitest/AssertKindOf

  • Minitest/AssertMatch

  • Minitest/AssertNil

  • Minitest/AssertOutput

  • Minitest/AssertPathExists

  • Minitest/AssertPredicate

  • Minitest/AssertRaisesCompoundBody

  • Minitest/AssertRaisesWithRegexpArgument

  • Minitest/AssertRespondTo

  • Minitest/AssertSilent

  • Minitest/AssertTruthy

  • Minitest/AssertWithExpectedArgument

  • Minitest/AssertionInLifecycleHook

  • Minitest/DuplicateTestRun

  • Minitest/EmptyLineBeforeAssertionMethods

  • Minitest/GlobalExpectations

  • Minitest/LiteralAsActualArgument

  • Minitest/MultipleAssertions

  • Minitest/NoAssertions

  • Minitest/RefuteEmpty

  • Minitest/RefuteEqual

  • Minitest/RefuteFalse

  • Minitest/RefuteInDelta

  • Minitest/RefuteIncludes

  • Minitest/RefuteInstanceOf

  • Minitest/RefuteKindOf

  • Minitest/RefuteMatch

  • Minitest/RefuteNil

  • Minitest/RefutePathExists

  • Minitest/RefutePredicate

  • Minitest/RefuteRespondTo

  • Minitest/SkipEnsure

  • Minitest/SkipWithoutReason

  • Minitest/TestMethodName

  • Minitest/UnreachableAssertion

  • Minitest/UnspecifiedException

Usage Minitest

Copyright (C) 2012-2025 Bozhidar Batsov and RuboCop contributors.

Except where otherwise noted, docs.rubocop.org is licensed under the Creative Commons Attribution-ShareAlike 4.0 International (CC BY-SA 4.0).