Questions tagged [vstest.console.exe]

102 questions
1
vote
0 answers

vstest.console.exe could not find a custom test logger of x64

I created a custom logger with x64 to log some test result data. When I tried to run the tests, getting "Error: Could not find a test logger with URI or FriendlyName 'TrxTestLogger'." . But, working fine when I built with AnyCPU. I have some test…
Anil
  • 21
  • 1
  • 6
1
vote
1 answer

Is there a way to successfully run tests on Edge browser using Azure devops vstest task

Using Azure Hosted Windows agents I am trying to run Functional tests on browsers like Chrome, Firefox, IE and Edge. All the tests are running fine, except for the ones on Edge. The logs show error: Microsoft Web Driver can't be used with the…
1
vote
0 answers

how to get stdout when executing tests with vstest.console.exe?

I have some code that outputs to stdout: std::cout << "foo" << std::endl; I have a test written with Microsoft Unit Test Framework that calls that code. I then call the test: vstest.console.exe myCode.dll I expect to see "foo" but I don't see any…
Kevin
  • 702
  • 7
  • 22
1
vote
1 answer

On Visual Studio Test task v2 I am getting the error: The test source file "...UnitTestFramework.dll" provided was not found

On Azure DevOps I have a build pipeline with a Visual Studio Test task v2: I have the VS.QualityTools.UnitTestFramework nuget package on my solution. I am getting the following…
1
vote
1 answer

vstest.console.exe gets stuck after first test when executed from TFS Build

I have my build definition for my project set up on TFS. I intend to add Task to Run C++ Unit Tests and run them after each build. I tried and added the task. When the Tests ran on TFSBuild the first test crashed with unhandled c++ exception and did…
1
vote
1 answer

Visual Studio test task fails in pipeline but succeeds in test console

I am using Visual studio test task to run all my tests as a part of my build definition. The options that I have enabled are as attached below: Now, the problem here is that, some of my tests always fail when I run them from the build pipleine ,…
1
vote
0 answers

Problem with mouse speed (Visual Studio and vstest.console.exe)

The mouse speed displacement is not constant when using command prompt depending if Visual Studio is open or not. I am looking for a resolution to this problem. Environment: Windows 10 Enterprise 1803 (17134.407) VS Test Agent 2017 15.9.2 VS…
1
vote
1 answer

Azure Devops cscript error - Unexpected end of JSON input

I'm currently setting up an automated UI-test pipeline for a client. The pipeline itself is working (Selenium tests are running and ending accordingly), but at the start of the vstest task, the following error shows in the release: The log itself…
1
vote
1 answer

Can't run tests that interact with the desktop

I have downloaded and installed in a windows server 2016 a vs test agent, which was installed by a tool called Test Agent Configuration Tool. I then followed this guide to configure the agent to run tests that interact with desktop - I want to run…
1
vote
0 answers

Unit testing fails when listing DLLs in particular order, but only in 32 bit compiles

We have some unit tests in different DLLs. These DLLs house our main code as well, so they do have some dependency between them, though I don't think that the tests should cross the DLL boundary. However, we do a lot of /DELAYLOAD on the linker…
Adrian
  • 10,246
  • 4
  • 44
  • 110
1
vote
0 answers

How to deploy additional test files with .runsettings?

I migrated from TPv1 to TPv2 (Test Platform v2). I run my tests by using vstest.console.exe. I used .testsettings file for deploying additional files that my tests required (usually they are XML with some data). The skeleton of my solution is the…
Joseph Katzman
  • 1,959
  • 6
  • 21
  • 47
1
vote
1 answer

Bamboo VSTest Runner failing with "Could not find test result reports in the directory"

VSTest itself seems to be succeeding and outputting the trx file in the expected directory, but Bamboo is failing to find and parse the results. The runner is configured as follows The build log shows VSTest succeeding, and I can find and open the…
DotEfekts
  • 45
  • 7
1
vote
1 answer

Is vstest.console.exe available on macosx

I am running my unit tests using vstest.console.exe. Now I am moving my jenkins to a MacOS machine (because I have to compile a xamarin project for OSx). Using "dotnet test" does not work (yet?) with xamarin forms (see here). Is vstest.console.exe…
Nathan
  • 7,099
  • 14
  • 61
  • 125
1
vote
0 answers

How to get the TestCategory name from TestContext in vb.net

I have a test method with TestCategory attribute as shown below. Public Sub TestString() Dim a as String="a" Dim b as String="b" Assert.AreEqual(a,b) End Sub can we get the test category name…
1
vote
0 answers

VSTS "Run Functional Tests" TestCategory Not Working With Specrun Tests

I am trying to run a subset of our specrun tests as part of our VSTS release process. It works fine with the "Visual Studio Test" step with TestCategory=SmokeTest: It finds 47 tests and executes them. When I use the same configuration using the…
brushwood
  • 115
  • 3
  • 9