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

Pipeline Test failure not being parsed as failure

gummia
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 19, 2019

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
Daniel Santos
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 23, 2019

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
TAGS
AUG Leaders

Atlassian Community Events