mirror of https://github.com/rails/rails
Add Channel tests to `rails stats`
Rails generates `test/channels`(#34933) and even allows `rails test:channels` (#34947). `rails stats` has been providing info about `app/channels`, it makes sense to add `test/channels` as well. (I've changed test because we generate `test/channels` with some code)
This commit is contained in:
parent
9f0953d320
commit
7ec67c1d31
|
@ -20,6 +20,7 @@ STATS_DIRECTORIES = [
|
|||
%w(Model\ tests test/models),
|
||||
%w(Mailer\ tests test/mailers),
|
||||
%w(Mailbox\ tests test/mailboxes),
|
||||
%w(Channel\ tests test/channels),
|
||||
%w(Job\ tests test/jobs),
|
||||
%w(Integration\ tests test/integration),
|
||||
%w(System\ tests test/system),
|
||||
|
|
|
@ -118,7 +118,7 @@ module ApplicationTests
|
|||
end
|
||||
|
||||
def test_code_statistics_sanity
|
||||
assert_match "Code LOC: 29 Test LOC: 0 Code to Test Ratio: 1:0.0",
|
||||
assert_match "Code LOC: 32 Test LOC: 0 Code to Test Ratio: 1:0.0",
|
||||
rails("stats")
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue