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

Teamcity stats are incomplete #172

Closed
idonman opened this issue May 26, 2016 · 0 comments · Fixed by #258
Closed

Teamcity stats are incomplete #172

idonman opened this issue May 26, 2016 · 0 comments · Fixed by #258

Comments

@idonman
Copy link

idonman commented May 26, 2016

For code coverage summary (with diffs from previous build) to appear in overview tab,
the following stats must be sent:

a) Lines or Classes
b) Blocks
c) Statements or Methods.

As per current code

Only statements stats are being sent:

    log.info(statsKeyValue("CodeCoverageAbsSCovered", coverage.invokedStatementCount))
    log.info(statsKeyValue("CodeCoverageAbsSTotal", coverage.statementCount))

But blocks are sent as custom stat:
CodeCoverageBranch

So, 2 stats are missing at the moment:

  1. Block coverage stats must be sent as:
##teamcity[buildStatisticValue key='CodeCoverageB' value=' <value>'] 
##teamcity[buildStatisticValue key='CodeCoverageAbsBCovered' value='<value>']
##teamcity[buildStatisticValue key='CodeCoverageAbsBTotal' value='<value>']
  1. Lines or Classes. Lines can be excluded, in favor of statements stats. Thus classes total coverage must be calculated and sent, so that teamcity coverage summary could appear on build overview tab:
##teamcity[buildStatisticValue key='CodeCoverageC' value='<value>']
##teamcity[buildStatisticValue key='CodeCoverageAbsCCovered' value='<value>']
##teamcity[buildStatisticValue key='CodeCoverageAbsCTotal' value='<value>'] 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant