Azure DevOps pipeline DotNetCore test path projects pattern

0 votes

I want to test my .NET Core 5.0 projects in the Azure DevOps pipeline. When using a full path to one of my test projects the pipeline will test that single project. When using a pattern to search for all my test projects he can't find one of them.

My project structure is as follows:

  1. backend
    1. DemoProject (with the .sln file)
      1. DemoProject.Application
      2. DemoProject.Application.Test
      3. DemoProject.Persistence
      4. DemoProject.Persistence.Test
    2. DemoProject 2
      1. ....

 I created a simple version of my pipeline template:

- master

pool:
  vmImage: ubuntu-latest

steps:
- task: DotNetCoreCLI@2
  inputs:
    command: 'test'
    projects: './backend/DemoProject/DemoProject.Application.Tests/DemoProject.Application.Tests.csproj'

When using the full path (./backend/DemoProject/DemoProject.Application.Tests/DemoProject.Application.Tests.csproj), the pipeline find's the selected project. When using a pattern. (./backend/DemoProject/\*\*/\*.Tests.csproj or ./backend/DemoProject/\*\*/DemoProject.Application.Tests.csproj), the pipeline can't find any project.

Does someone know what the correct pattern is to run all my test projects inside the DemoProject folder?

Mar 27, 2022 in Other DevOps Questions by Kichu
• 19,040 points
1,814 views

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.

Related Questions In Other DevOps Questions

0 votes
0 answers

Azure Devops CI pipeline trigger for multi projects

I have the following structure: Test-A and Test-B ...READ MORE

Apr 7, 2022 in Other DevOps Questions by Kichu
• 19,040 points
1,437 views
0 votes
0 answers
0 votes
0 answers
0 votes
1 answer

How to configure and execute Azure Devops classic editor pipeline after commit in Github?

If you're looking for CI/CD triggers, all ...READ MORE

answered Feb 10, 2022 in Other DevOps Questions by Bhavitha
• 1,000 points
1,086 views
0 votes
0 answers
0 votes
1 answer
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP