简体   繁体   中英

How to exclude method in c# for sonarqube code coverage

I am using sonarqube for code coverage in visual studio c# project I want to exclude some methods for the sonar sonarqube code coverage. I have tried the ExcludeFromCodeCoverage attribute but this is not working.

Have you tried? ExcludeFromCodeCoverageAttribute this attribute could be used at class level too

If not work, could be a problem in your Sonar Analyzer

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM