Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Pipeline Test failure not being parsed as failure

We have dotnet core test projects that we are trying to test in a pipeline, but I want to test all projects, except one. So the command I use is

find ./test -type f -name *.csproj ! -name *WebAPI* -exec dotnet test {} \;

However, when this runs and one test fails, the pipeline is listed as succeeding.

In the step I get Test Run Failed. but the pipeline shows a green tick.

1 answer

0 votes

Hi @gummia

This is not a Pipelines limitation, but rather the way the command find returns error codes when doing such task.

There is a good article about this here:

There you will find suggestions to overcome this issue.

I think in your case you could change your command to something like:

find ./test -type f -name *.csproj ! -name *WebAPI* | xargs dotnet test

Please let me know if that solves your issue.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bitbucket

Powering DevOps with Bitbucket Server & Data Center

Hi everyone, The Cloud team recently announced 12 new DevOps features that help developers ship better code, faster   ! While we’re all excited about the new improvements to Bitbucket ...

1,869 views 0 7
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you