Avi*_*wal 5 testing code-coverage simplecov
最近我正在使用rails项目,并使用simplecov生成代码覆盖率报告,我在下面得到了一个很好的报告.我知道这是一个简单的问题(我google了很多次但没有得到任何正确的解释)
任何人都可以解释点击/线的含义.
还可以说我有一个文件test.rb(100行代码),它没有被任何时候点击,现在让我们说一些test_script已经命中了一些文件test.rb,所以覆盖率会由
total no.of lines hit / total lines of code , (All files)
OR
lines hit / total lines of code (file1) .+.+....lines hit/ total line of code (file n) / total number of file count
Run Code Online (Sandbox Code Playgroud)
