I have a .Net core that builds successfully using VSTS. The issue I'm presenting is that Unit Tests aren't being discovered when building the project. I know this is similar to this post but I just wanted to bring up more details in case someone has a good idea seeing this description.
This a summary of the logs:
##[warning]Project file(s) matching the specified pattern were not found
.##[section]Finishing: Test.
I'm concerned about the minimatch pattern used here. It seems is looking for a Tests folder and then any file that ends in
.csproj
The default agent queue is Hosted VS2017 as indicated by @starain-MSFT in previous post
The solution structure is described in the next image, is pretty basic:
- A .Net Core project with a model class.
- A MS Unit Test Project (That contains a reference to the mentioned class).
- A
[TestClass]
with a single[TestMethod]
that pass the test.