I have read No tests to execute msTest
I'm trying to run a unit test (MS unit tests) from the command line. It's my first time attempting this.
My command works fine (no syntax errors), which is
mstest /testcontainer:C:\Users\me\source\repos\Test03\UnitTestProject1\bin\debug\UnitTestProject1.dll
The problem is I always get the following response in the console
Loading C:\Users\me\source\repos\Test03\UnitTestProject1\bin\debug\UnitTestProject1.dll...
Starting execution...
No tests to execute.
My unit test is simply
namespace UnitTestProject1
{
[TestClass]
public class UnitTest1
{
[TestMethod]
public void AddPositive()
{
var bll = new ConsoleApp1.Bll();
var result = bll.Add(2, 5);
Assert.IsTrue(result == 7);
}
}
Why does it not find the test as I've followed the instructions from https://msdn.microsoft.com/en-us/library/ms182489.aspx#testcontainer?
The solution as a whole targets 4.6.1 , I'm using VS 2017 Enterprise