You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Allow registering test directories for CodeStatistics
Make it easier for third party gems, to register test directories.
For example `rspec-rails` currently appends to the TEST_TYPES constant:
::STATS_DIRECTORIES << ["#{name} specs", dir]
::CodeStatistics::TEST_TYPES << "#{name} specs"
https://github.com/rspec/rspec-rails/blob/418daeb0f492e693b7bd2c6bba1c2c1aee3a4d37/lib/rspec/rails/tasks/rspec.rake#L44
With this change it can be simplified to:
::Rails::CodeStatistics.register_directory "#{name} specs", dir, test_directory: true
0 commit comments