MSTests fail at command line, but work in Visual Studio 2017 IDE
Asked Answered
R

1

0

I am trying to configure a command line build using the command line.

I have Visual Studio 2017 installed on Windows Server 2016.

I have installed all the build tools and they seem to work.

When I run my MSTest unit tests in Visual Studio 2017 IDE they all pass.

When I run them at the command line some pass and some fail.

Can someone tell me what might be wrong or how to figure it out? Normally when a test fails it fails in the IDE so I can debug it. In this case I can't debug it because it passes.

Reclamation answered 14/1, 2019 at 22:34 Comment(1)
What command are you running on the command line?Hayrack
H
1

Use vstest.console.exe to run your tests. mstest.exe exists solely for backwards compatibility.

See the MSDN docs for more info.

Hayrack answered 15/1, 2019 at 0:28 Comment(1)
This solved my issue. I had no idea that MSTest was outdated. Thanks!Reclamation

© 2022 - 2024 — McMap. All rights reserved.