How to use wildcards woth dotnet core test

I'm trying to get test running for multiple projects using dotnet core plugin: https://github.com/JetBrains/teamcity-dotnet-plugin. We have linux build agents based on this: https://hub.docker.com/r/jetbrains/teamcity-agent/

I have all my testing projects under /test folder, i tried to give number of wildcards to the test step, always resulting in "Target files not found for pattern ". Some patterns i tried: /test/*, /test/**, /test/*/*, /test/**/*, /test/**/*.csproj, etc...

1
2 comments

Hi Felix,

Where are you adding the test wildcards? Which kind of step have you configured?

There is some guidance for xunit and nunit here: https://blog.jetbrains.com/teamcity/2016/11/teamcity-dotnet-core/ (NUnit added support since)

0
Avatar
Permanently deleted user

I use dotnet core. The blog just cover running all the tests for solution \ a single project. What if i want to run just a subset of tests? E.g. tests only under particular folder?

 

I could test solution and filter the tests, but thought the wildcard should work just perfect... and that would make the filtering really trivial... 

0

Please sign in to leave a comment.