Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Test Classes are not covered during Test Execution #478

Unanswered
Jagadeesh-tamizh asked this question in Q&A
Discussion options

I do have a project - MyProject (C# Class Library)

  • MyModule.cs (Main module)
    For theat i have MyProject.CT Test library
  • MyMoudleComponentTest.cs (Test class)

My issue is coverage reports are not being generated for the test classes.
I just want to know how much of line coverage is present in my test classes.

You must be logged in to vote

Replies: 4 comments 8 replies

Comment options

If you have RunMsCodeCoverage is Yes then set IncludeReferencedProjects to True.

You must be logged in to vote
6 replies
Comment options

IncludeTestAssembly True

Comment options

Comment options

I checked all these flags earlier and still didn't find any coverage results

Comment options

Enabled - True and that you are running tests from test explorer ?
image
What do you see in the FCC Output Window Pane ?
image

Show me your repo.

Comment options

Yes, I'm running from Test Explorer and i tried running tests with other possible ways too Fine Code Coverage 10-02-2025 2:23:02 PM: Ms code coverage Fine Code Coverage 10-02-2025 2:23:12 PM: ReportGenerator Run Arguments [reporttype:Cobertura] "-reports:C: "-reporttypes:Cobertura" Fine Code Coverage 10-02-2025 2:23:16 PM: ReportGenerator Run [reporttype:Cobertura] 2025年02月10日T14:23:12: Arguments 2025年02月10日T14:23:12: -reports:C:2025年02月10日T14:23:12: -reporttypes:Cobertura 2025年02月10日T14:23:16: Writing report file 'Cobertura.xml' 2025年02月10日T14:23:16: Report generation took 3.8 seconds Fine Code Coverage 10-02-2025 2:23:16 PM: ReportGenerator Run Arguments [reporttype:HtmlInline_AzurePipelines] "-reports: "-plugins: "-reporttypes:FccLight" "riskHotspotsAnalysisThresholds:metricThresholdForCyclomaticComplexity=30" "riskHotspotsAnalysisThresholds:metricThresholdForCrapScore=15" "riskHotspotsAnalysisThresholds:metricThresholdForNPathComplexity=200" Fine Code Coverage 10-02-2025 2:23:19 PM: ReportGenerator Run [reporttype:HtmlInline_AzurePipelines] 2025年02月10日T14:23:16: Arguments 2025年02月10日T14:23:16: -reports:2025年02月10日T14:23:16: 2025年02月10日T14:23:16: -reporttypes:FccLight 2025年02月10日T14:23:16: riskHotspotsAnalysisThresholds:metricThresholdForCyclomaticComplexity=30 2025年02月10日T14:23:16: riskHotspotsAnalysisThresholds:metricThresholdForCrapScore=15 2025年02月10日T14:23:16: riskHotspotsAnalysisThresholds:metricThresholdForNPathComplexity=200 2025年02月10日T14:23:18: Writing report file 'index.html' 2025年02月10日T14:23:19: Report generation took 2.4 seconds Fine Code Coverage 10-02-2025 2:23:19 PM: Processing cobertura Fine Code Coverage 10-02-2025 2:23:19 PM: Processing report Fine Code Coverage 10-02-2025 2:23:21 PM: ================================== DONE ==================================

Comment options

Are you running tests in a container environment?

So are you getting coverage for your SUT ?

What are your full options ?

Can you show your solution ?

You must be logged in to vote
1 reply
Comment options

Yes, my tests are being run in an Container env
I do get coverage for the modules for which tests are being executed.
It's a non-disclosable solution, so...

Also, earlier (Around 6 months back) i do have coverage for the test classes too!

Comment options

Have you set HideFullyCovered true ?

You must be logged in to vote
0 replies
Comment options

Can you provide details on your container

You must be logged in to vote
1 reply
Comment options

Are you providing your own runsettings ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /