outsystems-pipeline
outsystems-pipeline copied to clipboard
Error generating JUnit report
Hi, I'm getting this error when one of the tests scenarios fails:
Running tests...
----------------------------------------------------------------------
.F
======================================================================
FAIL [0.309s]: test_MyProductTests__Scenario_2 (__main__.BDDTestRunner)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/vsts/work/1/s/outsystems/pipeline/evaluate_test_results.py", line 45, in test
self.assertTrue(json_obj["SuiteSuccess"], format_error_report(json_obj))
AssertionError:
BDD Test Suite failed 1 scenarios (in 1)
------------------------------------
Scenario
Save
------------------------------------
Given
I am logged in [P]
When
I save something [F]
[F] You are not authenticated.
Then
it is saved [Skipped]
------------------------------------
----------------------------------------------------------------------
Ran 2 tests in 0.565s
FAILED (failures=1)
Generating XML reports...
##[error]Bash exited with code '1'.
Finishing: Run BDD test suites and generate JUnit test report
For the same pipeline and artifacts, if all tests run with no errors, I get no execution errors and the test report is generated:
Any ideas ?!