Skip to content

Instantly share code, notes, and snippets.

@varyform
Forked from jsborjesson/register_statistics.rake
Created February 6, 2017 18:39
Show Gist options
  • Save varyform/d006649d54c2b55e1245a5b1e8b75a9b to your computer and use it in GitHub Desktop.
Save varyform/d006649d54c2b55e1245a5b1e8b75a9b to your computer and use it in GitHub Desktop.
Add more folders to rake stats
task :register_statistics do
require 'rails/code_statistics'
STATS_DIRECTORIES << ['Services', 'app/services']
STATS_DIRECTORIES << ['Services Tests', 'test/services']
CodeStatistics::TEST_TYPES << 'Services Tests'
end
Rake::Task['stats'].enhance [:register_statistics]
@hakunin
Copy link

hakunin commented Jan 1, 2023

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment