Skip to content

Files

Latest commit

 

History

History
24 lines (18 loc) · 310 Bytes

Minitest-NoTestCases.md

File metadata and controls

24 lines (18 loc) · 310 Bytes

Pattern: Missing test case for test class

Issue: -

Description

Checks if test class contains any test cases.

Examples

# bad
class FooTest < Minitest::Test
  def do_something
  end
end

# good
class FooTest < Minitest::Test
  def test_something
    assert true
  end
end