Create
cancel
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

Failed test in pipeline treated as non-failed

I'm using restcli tool (https://github.com/restcli/restcli) - command-line test tool for HTTP testing in bitbucket pipelines.

It produces test results in JUnit format, but suddenly bitbucket pipeline captures all tests as successful.

Here example of a test result:

<?xml version="1.0" encoding="UTF-8"?>
<testsuites tests="2" name="IntelliJ Rest CLI - Test Generator">
<testsuite tests="1" name="https://bitbucket.org/"><testcase name="Request executed successfully"/>
</testsuite><testsuite tests="1" name="https://api.bitbucket.org/notexist"> <testcase name="Request executed successfully">
<failure type="AssertionFailure">Response status is not 200

File: example.http
Line: 14</failure>
</testcase>
</testsuite></testsuites>

It treated as successful but clearly contains one failure.

Also, I created PoC repo with pipeline execution:
https://bitbucket.org/vladklekovkin/tests/addon/pipelines/home#!/results/6/steps/%7Bb3c8f9e3-a1d0-4d73-a042-a1ca8f794fc2%7D

0 answers

Suggest an answer

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

New improvements to user management in Bitbucket Cloud 👥

Hey Community! We’re willing to wager that quite a few of you not only use Bitbucket, but administer it too. Our team is excited to share that we’ll be releasing improvements throughout this month of...

3,740 views 10 16
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