The exception tests the integration endpoints of rake test and the ability to isolate and run by a rake test:endpoints were allowed only a few lines of code. I must admit, I spent many hours cursing and cursing. There should be more documentation and explanation in the source of the rails. Such Ruby code, as a rule, is not very clear, IMO.
Well, here it is: create your task: lib / tasks / slow_tests.rake
require 'rails/test_unit/railtie' desc "Runs all endpoint integration tests." namespace :test do
Now I can put my fragile endpoint integration tests into the test / enpoints directory, running them whenever I want (not often)
Note: this assumes a test / block or point.
source share