Calculate mailbox and channel test files as Test LOC stats

If they are not included in this "test types" list, they're counted
towards app code lines, not test lines.
This commit is contained in:
Carlos Antonio da Silva 2020-02-19 09:20:41 -03:00
parent 7355ff35b9
commit 6f98614b1f
2 changed files with 3 additions and 1 deletions

View File

@ -8,6 +8,8 @@ class CodeStatistics #:nodoc:
"Helper tests",
"Model tests",
"Mailer tests",
"Mailbox tests",
"Channel tests",
"Job tests",
"Integration tests",
"System tests"]

View File

@ -141,7 +141,7 @@ module ApplicationTests
end
def test_code_statistics_sanity
assert_match "Code LOC: 32 Test LOC: 0 Code to Test Ratio: 1:0.0",
assert_match "Code LOC: 29 Test LOC: 3 Code to Test Ratio: 1:0.1",
rails("stats")
end