No coverage on short-lived branches


Is SCM mandatory to obtain coverage for new code on short-lived branches ?

I am using Teamcity to build and analyse a C# project. As our project needs multiple repositories to build, we have disable SCM to avoid the Not inside a Git work tree error related to Teamcity root workspace. The leak period is set on a fix date (beginning of the quarter).

Everything works fine on the master branch but for an unknown reason I have empty values in short-lived branches. It seems that the new code is not considered as new : when looking in a class, the code is not on yellow background as it is on the main branch.

I read this : Could this be related ?



Yes, the limitation described in that ticket is most likely the cause of your problem.
Without information regarding which lines are new in the branch, there is no way to calculate any data for it.