vstest.console.exe

vstest.console.exe ListTests with FullyQualifiedName

空扰寡人 提交于 2021-01-28 05:17:32
问题 /ListTests option of vstest is returning a list of test method names inside a dll. Is there a way to return a list of FullyQualifiedNames ? So instead of getting TestMethodName I would like to receive NamespaceName . ClassName . TestMethodName . 回答1: You can use following command: vstest.console a.dll /ListFullyQualifiedTests /ListTestsTargetPath:Tests.txt 来源: https://stackoverflow.com/questions/44569883/vstest-console-exe-listtests-with-fullyqualifiedname

TFS Tests do not match framework settings

喜欢而已 提交于 2020-12-28 09:56:15
问题 I am attempting to move a solution from TFS 2012 to TFS 2018 SP2RC2 but I can't get the unit tests to run correctly. All projects have been re-targeted to 4.7.1 and are built as x86 platform. We have a testsettings file that supplies nothing but deployment items. I am using the new VSTest Platform Installer task (as directed by MS) and the VS Test Task. At the start of the test run I get the following message: Test run will use DLL(s) built for framework .NETFramework,Version=v4.5 and

Vstest.console.exe can't find nunit tests

痴心易碎 提交于 2020-01-24 05:03:40
问题 I have VS 2017 and .net 4.6 On trying to run via cmd prompt using vstest.console: vstest.console.exe bin\Release\Tests.dll /UseVsixExtensions:true I am getting warning "No test is available in /bin/Release/test.dll Make sure that installed test discoverers & executors, platform & framework version settings are appropriate and try again." So, I tried listing the tests but it doesn't show any tests. vstest.console.exe bin\Release\Tests.dll /ListTests /UseVsixExtensions:true Unit tests class

VSTest: A testsettings file or a runsettings with a ForcedLegacyMode set to true is not supported with the MSTest V2 Adapter. No test is available

泪湿孤枕 提交于 2020-01-22 12:22:25
问题 How to use .testsettings file running unit tests via vstest.console.exe ? I created empty visual studio solution, created empty unit test project, added Local.testsettings file as a solution item. [TestClass] public class UnitTest1 { [TestMethod] public void TestMethod1() { } } <?xml version="1.0" encoding="UTF-8"?> <TestSettings name="Local" id="1109524d-9809-4423-b7fa-fad429ebfd8d" xmlns="http://microsoft.com/schemas/VisualStudio/TeamTest/2010"> <Description>These are default test settings

VSTest: A testsettings file or a runsettings with a ForcedLegacyMode set to true is not supported with the MSTest V2 Adapter. No test is available

北战南征 提交于 2020-01-22 12:22:07
问题 How to use .testsettings file running unit tests via vstest.console.exe ? I created empty visual studio solution, created empty unit test project, added Local.testsettings file as a solution item. [TestClass] public class UnitTest1 { [TestMethod] public void TestMethod1() { } } <?xml version="1.0" encoding="UTF-8"?> <TestSettings name="Local" id="1109524d-9809-4423-b7fa-fad429ebfd8d" xmlns="http://microsoft.com/schemas/VisualStudio/TeamTest/2010"> <Description>These are default test settings

Can vstest.console.exe run an appx without a security certificate

梦想与她 提交于 2020-01-03 10:58:47
问题 I'm trying to set up automated builds on my build agent using MSBuild on the command line. The two projects I'm focussed on at the moment are a UWP and it's associated unit test project. To build, I have to use this: /p:AppxPackageSigningEnabled=false Else, I get this error: error APPX0101: A signing key is required in order to package this project. Please specify a PackageCertificateKeyFile or PackageCertificateThumbprint value in the project file. However, this does not generate a .cer

Selenium screenshots in VSTS (Azure DevOps)

蓝咒 提交于 2019-12-23 10:51:14
问题 According to my searches, it should "just work". This is the best article I found. I've followed the steps, but nowhere in the VSTS (Azure DevOps) interface does it indicate there are any screenshots attached. I am running this on a privately hosted build server and I have verified the following: Screenshots are being created and saved to disk The resulting TRX file (I'm using MSTEST framework) does have a ResultFile reference (a path to the image file) The TRX file is uploaded to VSTS and I

TFS 2017 test task run fails on VS 2017 build machine if code coverage is enabled

非 Y 不嫁゛ 提交于 2019-12-07 10:24:51
问题 We're executing a number of tests on a build machine with VS 2017 Enterprise where we've enabled code coverage on the Visual Studio test task. This fails with the following error in the TFS 2017 console: ##[section]Starting: Test Assemblies **\*test*.dll Preparing task execution handler. Executing the powershell script: d:\builds\4\_tasks\VSTest_ef087383-ee5e-42c7-9a53-ab56c98420f9\1.0.60\VSTest.ps1 C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\Extensions

TFS 2017 test task run fails on VS 2017 build machine if code coverage is enabled

落爺英雄遲暮 提交于 2019-12-05 18:20:12
We're executing a number of tests on a build machine with VS 2017 Enterprise where we've enabled code coverage on the Visual Studio test task. This fails with the following error in the TFS 2017 console: ##[section]Starting: Test Assemblies **\*test*.dll Preparing task execution handler. Executing the powershell script: d:\builds\4\_tasks\VSTest_ef087383-ee5e-42c7-9a53-ab56c98420f9\1.0.60\VSTest.ps1 C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\Extensions\TestPlatform Working folder: d:\builds\4\3\s Executing C:\Program Files (x86)\Microsoft Visual Studio\2017

VSTest: A testsettings file or a runsettings with a ForcedLegacyMode set to true is not supported with the MSTest V2 Adapter. No test is available

喜夏-厌秋 提交于 2019-12-03 06:25:35
How to use .testsettings file running unit tests via vstest.console.exe ? I created empty visual studio solution, created empty unit test project, added Local.testsettings file as a solution item. [TestClass] public class UnitTest1 { [TestMethod] public void TestMethod1() { } } <?xml version="1.0" encoding="UTF-8"?> <TestSettings name="Local" id="1109524d-9809-4423-b7fa-fad429ebfd8d" xmlns="http://microsoft.com/schemas/VisualStudio/TeamTest/2010"> <Description>These are default test settings for a local test run.</Description> <Deployment enabled="false" /> <Execution hostProcessPlatform="MSIL