Test Hook
Definition:
Conditional logic within the SUT determines whether the “real” code or test-specific logic is run.
Code Example:
class ApplicationController < ActionController::Base
unless Rails.env.test?
before_filter :require_login
end
end
References:
Quality attributes
- Code Example
- Cause and Effect
- Frequency
- Refactoring