Slow Test

Definition:

  • Slow tests are kind of tests which take long enough to run

Also Known As:

  • Long Running Test, The Slow Poke

Code Example:

class SlowTest < Test::Unit::TestCase
  def test_fast
    assert true
  end

  def test_slow
    MyClass.slow_method
    assert true
  end
end

References:

Quality attributes

  • - Code Example

  • - Cause and Effect

  • - Frequency

  • - Refactoring