TUnit Framework #497
Replies: 10 comments 6 replies
-
I have RunMsCodeCoverage set to Yes and IncludeReferencedProjects set to True |
Beta Was this translation helpful? Give feedback.
-
Are you using a test environment ? Can you disable the vs feature - Options / Environment / Preview Features / Use testing platform server mode" Can you provide a miminal solution so that I can debug FCC against it ? |
Beta Was this translation helpful? Give feedback.
-
Can you also follow the instructions https://github.com/microsoft/VSProjectSystem/blob/master/doc/overview/about_project_capabilities.md#viewing-a-projects-capabilities to determine the test project capabilities. |
Beta Was this translation helpful? Give feedback.
-
On the TUnit readme If for TUnit does require the setting then it is not supported. Perhaps in Vs version 17.13 it is not possible for FCC to do it's switching. What version of VS are you using ? |
Beta Was this translation helpful? Give feedback.
-
I am on the latest so 17.13. So FineCodeCoverage cannot be used with latest version of visual studio since that preview setting is now a permanently enabled setting in VS?
Get Outlook for Android<https://aka.ms/AAb9ysg>
…________________________________
From: Tony Hallett ***@***.***>
Sent: Saturday, March 15, 2025 4:39:35 AM
To: FortuneN/FineCodeCoverage ***@***.***>
Cc: David Potter ***@***.***>; Author ***@***.***>
Subject: Re: [FortuneN/FineCodeCoverage] TUnit Framework (Discussion #497)
On the TUnit readme
https://github.com/microsoft/VSProjectSystem/blob/master/doc/overview/about_project_capabilities.md#viewing-a-projects-capabilities
If for TUnit does require the setting then it is not supported.
Perhaps in Vs version 17.13 it is not possible for FCC to do it's switching.
What version of VS are you using ?
—
Reply to this email directly, view it on GitHub<#497 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/BLZXKX3EQG7R6JV3HHH2KH32UPRMPAVCNFSM6AAAAABZCAEBWWVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTENJQHAZDGMI>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
CONFIDENTIAL
The information contained in this electronic message is confidential and intended only for the use of the individual or entity named above. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this electronic message is strictly prohibited. If you have received this electronic message in error, please notify me immediately at the above listed telephone number(s) and delete the original message.
|
Beta Was this translation helpful? Give feedback.
-
FCC coverage works for TUnit in 17.12.3.
We may be able to use remove I am updating my vs version now. Will let you know. |
Beta Was this translation helpful? Give feedback.
-
Take my earlier comment of it working in the previous version as I believe that I had not set UseMsCodeCoverage to Yes. I think that MsTest with the testing platform works because it has the test adapter present. Whereas TUnit does not have one. I will investigate what the options are. |
Beta Was this translation helpful? Give feedback.
-
XUnit, NUnit and MSTest ( MSTest requires a change in FCC code ) all work with RunMsCodeCoverage Yes with Visual Studio 17.13.3 For TUnit FCC is unable to use the test explorer window as there is no fallback available and it is not possible to use https://www.nuget.org/packages/Microsoft.Testing.Extensions.CodeCoverage for coverage as the test window controls the arguments and that is the only way that Microsoft.Testing.Extensions.CodeCoverage can be configured. I have opened a feature request as it could provide a hook for FCC. The only other solutions are for FCC to have a buttons Import a cobertura file that you generate but then you would need to provide the settings |
Beta Was this translation helpful? Give feedback.
-
Apologies, yes that is correct. Forget that idea for the moment then. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
TUnit is a newer testing framework that utilizes Microsoft's new testing package Microsoft.Testing.Platform. After installing FCC extension and running a TUnit test, I get the messsage "No cobertura files for ms code coverage." What am I missing to get FCC to pick up these tests and show the code coverage in the FCC window?
Beta Was this translation helpful? Give feedback.
All reactions