Created
April 11, 2012 17:52
-
-
Save sbleon/2360892 to your computer and use it in GitHub Desktop.
Add Turnip acceptance test LOC stats to "rake stats"
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# lib/tasks/acceptance_stats.rake | |
# | |
# Add acceptance tests to "rake stats" output | |
if Rake::Task.task_defined? 'spec:statsetup' | |
Rake::Task['spec:statsetup'].enhance do | |
require 'rails/code_statistics' | |
::STATS_DIRECTORIES << %w(Acceptance\ tests spec/acceptance) if File.exist?('spec/acceptance') | |
::CodeStatistics::TEST_TYPES << 'Acceptance tests' if File.exist?('spec/acceptance') | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment