Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Find a way to get test coverage statistics #36

Open
bernardosulzbach opened this issue Jun 20, 2020 · 1 comment
Open

Find a way to get test coverage statistics #36

bernardosulzbach opened this issue Jun 20, 2020 · 1 comment
Assignees
Labels
analysis An idea still being considered enhancement New feature or request

Comments

@bernardosulzbach
Copy link
Owner

Chromium seems to do this. Find a way to do it.

Clang-coverage may be used for this.

@bernardosulzbach bernardosulzbach added enhancement New feature or request analysis An idea still being considered labels Jun 20, 2020
@bernardosulzbach bernardosulzbach self-assigned this Jun 20, 2020
bernardosulzbach added a commit that referenced this issue Jun 20, 2020
This uses llvm-cov and friends internally.

Closes #36
@bernardosulzbach
Copy link
Owner Author

3c45a7f currently produces the following report. This only works with Clang.

Filename                               Regions    Missed Regions     Cover   Functions  Missed Functions  Executed       Lines      Missed Lines     Cover
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Argument.cpp                                10                10     0.00%           7                 7     0.00%          32                32     0.00%
ArgumentFactory.cpp                          4                 4     0.00%           4                 4     0.00%          12                12     0.00%
Argument.hpp                                 1                 1     0.00%           1                 1     0.00%           3                 3     0.00%
ArgumentParser.cpp                          26                26     0.00%           3                 3     0.00%          40                40     0.00%
Average.hpp                                  6                 4    33.33%           3                 1    66.67%          13                 6    53.85%
BoardComponentSplitter.cpp                  72                 5    93.06%           3                 0   100.00%         134                11    91.79%
Board.cpp                                  195                38    80.51%          18                 2    88.89%         237                58    75.53%
BoardScanner.cpp                           119               119     0.00%          17                17     0.00%         298               298     0.00%
Color.hpp                                   35                12    65.71%          18                 6    66.67%          91                38    58.24%
Filesystem.cpp                               4                 4     0.00%           1                 1     0.00%           9                 9     0.00%
FloatingPointScreenCoordinates.cpp           6                 2    66.67%           6                 2    66.67%          19                 6    68.42%
FloatingPointScreenCoordinates.hpp           1                 0   100.00%           1                 0   100.00%           1                 0   100.00%
Hashing.cpp                                  7                 1    85.71%           1                 0   100.00%          20                 2    90.00%
ImageComponentType.cpp                       7                 7     0.00%           1                 1     0.00%          15                15     0.00%
Image.cpp                                   62                25    59.68%          12                 3    75.00%          95                38    60.00%
IntegralScreenCoordinates.cpp                7                 1    85.71%           5                 1    80.00%          14                 3    78.57%
IntegralScreenCoordinates.hpp                1                 0   100.00%           1                 0   100.00%           8                 0   100.00%
MaskComponentFinder.cpp                     93                 7    92.47%          15                 2    86.67%         172                21    87.79%
Mask.cpp                                    34                27    20.59%           8                 3    62.50%          88                73    17.05%
Numeric.hpp                                 11                 5    54.55%           4                 1    75.00%          26                16    38.46%
Position.cpp                                12                 4    66.67%           4                 1    75.00%          26                 9    65.38%
Range.hpp                                    5                 0   100.00%           5                 0   100.00%          12                 0   100.00%
Solution.cpp                                46                39    15.22%          13                 8    38.46%          88                74    15.91%
SolverConfiguration.cpp                      8                 4    50.00%           8                 4    50.00%          24                12    50.00%
Solver.cpp                                  98                18    81.63%          11                 1    90.91%         200                29    85.50%
SystemInformation.cpp                       13                13     0.00%           3                 3     0.00%          41                41     0.00%
Text.cpp                                     4                 4     0.00%           1                 1     0.00%           6                 6     0.00%
Text.hpp                                    11                 1    90.91%           5                 0   100.00%          33                 0   100.00%
Tile.cpp                                     8                 1    87.50%           4                 1    75.00%          14                 3    78.57%
TileType.cpp                                20                 7    65.00%           4                 1    75.00%          38                11    71.05%
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
TOTAL                                      926               389    57.99%         187                75    59.89%        1809               866    52.13%

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
analysis An idea still being considered enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant