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

CICD is not failing when listener is failing #31

Open
Tattoo opened this issue Sep 9, 2021 · 0 comments
Open

CICD is not failing when listener is failing #31

Tattoo opened this issue Sep 9, 2021 · 0 comments

Comments

@Tattoo
Copy link
Contributor

Tattoo commented Sep 9, 2021

The CICD currently relies on Robot Framework exit code to know if the test execution failed or not. However, in cases where the Oxygen listener fails, but the test execution otherwise passes, RF will return 0 and the CICD passes.

For example:

==============================================================================
Atest                                                                 | PASS |
10 critical tests, 10 passed, 0 failed
10 tests total, 10 passed, 0 failed
==============================================================================
[ ERROR ] Calling method 'output_file' of listener 'oxygen.listener' failed: MismatchArgumentException: parse_results expects 3 arguments but got 1
Output:  /[...]/output.xml
Log:     /[...]/log.html
Report:  /[...]/report.html

[python38][robotframework==3.2] Exited with 0

Since Oxygen is, in part, a listener, we need CICD to detect that listener has failed during the test execution

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