I am using simplecov for code coverage. I have no idea what sequence coverage is. I Googled it but I could not find anything, although I did find information about Branch Coverage.

- 36,475
- 10
- 98
- 121

- 400
- 3
- 19
-
Did your coverage report show anything with respect to the Sequence? It will be helpful if you can share that. – Wand Maker Feb 12 '16 at 12:56
-
I pulled the source code of simplecov and there's no mention for "sequence" in the codebase. Are you sure Sequence isn't one of your own files? – Kimmo Lehto Feb 12 '16 at 13:35
-
@WandMaker, question updated – Sushant Bajracharya Feb 15 '16 at 04:32
-
@kimmmo question updated – Sushant Bajracharya Feb 15 '16 at 04:33
2 Answers
The term "Sequence coverage" comes from Shippable CI, not simplecov.
From Shippable's API documentation we can find this:
branchCoveragePercent The percentage of branches (if/then/else condtions) that are covered by tests
sequenceCoveragePercent Percentage of lines there are code coverage for
So branch coverage counts all your code branching such as:
if a==b
do stuff # branch 1
else
do other stuff # branch 2
end
Now if your test suite only tests when a==b, your branch coverage for this file is 50%.
Sequence coverage is the regular line by line coverage report, if your code has 100 lines and during the tests only 70% of the lines have been run, your sequence coverage is 70%.

- 5,910
- 1
- 23
- 32
Evidently "Sequence Coverage" is a Shippable CI term. According to Shippable CI's docs, "sequence coverage" just means line coverage. Perhaps they chose that term to contrast to "branch coverage".

- 36,475
- 10
- 98
- 121