-
-
Notifications
You must be signed in to change notification settings - Fork 46
csproj files checked out when running unit tests #538
-
Since starting to use FinCodeCoverage either all csproj files, or all the unit test csproj files get checked out when we run tests.
Is this necessary? Can we stop it?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 1 comment 4 replies
-
What version of FCC and Visual Studio are you using ?
This used to be an issue and I thought that it had been resolved.
Is this necessary?
When RunMsCodeCoverage Yes and you do not supply your own .runsettings file FCC must write to the .csproj. We then remove it at the end.
FineCodeCoverage/SharedProject/Core/MsTestPlatform/CodeCoverage/ProjectRunSettingsGenerator.cs
Line 18 in 6051fbd
https://github.com/FortuneN/FineCodeCoverage/blob/master/SharedProject/Core/MsTestPlatform/CodeCoverage/VsRunSettingsWriter.cs
https://github.com/FortuneN/FineCodeCoverage/blob/master/SharedProject/Core/Utilities/ProjectFilePropertyWriter.cs#L9
Can we stop it?
Yes.
Provide your own runsettings - https://learn.microsoft.com/en-us/visualstudio/test/configure-unit-tests-by-using-a-dot-runsettings-file?view=vs-2022
Or
RunMsCodeCoverage No. - there is different behaviour though. Tests run then all tests run again but under a different location.
Beta Was this translation helpful? Give feedback.
All reactions
-
FCC v1.1.245
VS 2022 professional v17.14.16
We do not provide a runsettings file. I will add one and see what effect that has.
Beta Was this translation helpful? Give feedback.
All reactions
-
adding a .runsettings file did the trick. My question has been answered.
Do you want any more information about the checking files out issue that you thought might be fixed?
Beta Was this translation helpful? Give feedback.
All reactions
-
Do you want any more information about the checking files out issue that you thought might be fixed?
Yes please. Does it happen all the time ? On particular projects ?
Beta Was this translation helpful? Give feedback.
All reactions
-
For me it checked out every project on every solution I ran unit tests on most of the time. Occasionally it would just check out the unit tests project files.
Beta Was this translation helpful? Give feedback.