Я создал конвейер сборки на Azure и пытаюсь использовать SonarQube с покрытием кода. Конвейер довольно прост и работает нормально, пока я не включу опцию Code coverage
на шаге Visual Studio Test
:
Когда я включаю Опция Code coverage
, я получаю следующую ошибку в шаге Покрытие теста:
NUnit Adapter 3.11.0.0: Test execution started
Running all tests in C:\newagent02\_work\31\s\Lib.Tests\bin\Release\Lib.Tests.dll
Exception NUnit.Engine.NUnitEngineException, Exception thrown executing tests in C:\newagent02\_work\31\s\Lib.Tests\bin\Release\Lib.Tests.dll
The NUnit 3 driver encountered an error while executing reflected code.
at NUnit.Engine.Drivers.NUnit3FrameworkDriver.CreateObject(String typeName, Object[] args)
at NUnit.Engine.Drivers.NUnit3FrameworkDriver.Load(String testAssemblyPath, IDictionary`2 settings)
at NUnit.Engine.Runners.DirectTestRunner.LoadDriver(IFrameworkDriver driver, String testFile, TestPackage subPackage)
at NUnit.Engine.Runners.DirectTestRunner.LoadPackage()
at NUnit.Engine.Runners.TestDomainRunner.LoadPackage()
at NUnit.Engine.Runners.DirectTestRunner.EnsurePackageIsLoaded()
at NUnit.Engine.Runners.DirectTestRunner.Explore(TestFilter filter)
at NUnit.Engine.Runners.MasterTestRunner.Explore(TestFilter filter)
at NUnit.VisualStudio.TestAdapter.NUnit3TestExecutor.RunAssembly(String assemblyPath, TestFilter filter) in D:\repos\nunit\nunit3-vs-adapter\src\NUnitTestAdapter\NUnit3TestExecutor.cs:line 234
Innerexception: System.Security.VerificationException: Operation could destabilize the runtime.
at NUnit.Framework.Api.FrameworkController..ctor(String assemblyNameOrPath, String idPrefix, IDictionary settings) in C:\src\nunit\nunit\src\NUnitFramework\framework\Api\FrameworkController.cs:line 68
NUnit Adapter 3.11.0.0: Test execution complete
Поиск ошибки Operation could destabilize the runtime
не дал мне никакой полезной подсказки ...