Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error generating JUnit report #62

Open
teresende opened this issue Jul 20, 2023 · 0 comments
Open

Error generating JUnit report #62

teresende opened this issue Jul 20, 2023 · 0 comments

Comments

@teresende
Copy link

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:

image

Any ideas ?!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant