-
-
Notifications
You must be signed in to change notification settings - Fork 46
Test Classes are not covered during Test Execution #478
-
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.
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 4 comments 8 replies
-
If you have RunMsCodeCoverage is Yes then set IncludeReferencedProjects to True.
Beta Was this translation helpful? Give feedback.
All reactions
-
IncludeTestAssembly True
Beta Was this translation helpful? Give feedback.
All reactions
-
Beta Was this translation helpful? Give feedback.
All reactions
-
😕 1
-
I checked all these flags earlier and still didn't find any coverage results
Beta Was this translation helpful? Give feedback.
All reactions
-
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.
Beta Was this translation helpful? Give feedback.
All reactions
-
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 ==================================
Beta Was this translation helpful? Give feedback.
All reactions
-
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 ?
Beta Was this translation helpful? Give feedback.
All reactions
-
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!
Beta Was this translation helpful? Give feedback.
All reactions
-
Have you set HideFullyCovered true ?
Beta Was this translation helpful? Give feedback.
All reactions
-
Can you provide details on your container
Beta Was this translation helpful? Give feedback.
All reactions
-
Are you providing your own runsettings ?
Beta Was this translation helpful? Give feedback.