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

Unalbe to upload failure stacktraces from the phpunit framework #105

Open
cheshi-mantu opened this issue Aug 15, 2024 · 1 comment
Open
Labels

Comments

@cheshi-mantu
Copy link

cheshi-mantu commented Aug 15, 2024

Describe the bug
Unalbe to upload failure stacktraces from the phpunit framework

We have PHPUnit integration setup according to the instructions, however stack traces are missing from the report. According to the code of the allure library, it only includes a message, without a stack trace.

To Reproduce
fail a test

Expected behavior
A clear and concise description of what you expected to happen.

when a test failed, then the stacktrace is included into the test result.

Screenshots

NA

Desktop (please complete the following information):
NA

Smartphone (please complete the following information):

NA

Additional context
Add any other context about the problem here.

@rlqd
Copy link

rlqd commented Jan 7, 2025

I figured it out.
ExceptionDetailsTrait is supposed to be used for that. However, it's broken because onNotSuccessfulTest is called at the very end of a test run after the testErrored event has been emitted.
So setLastException is happening after the test status was recorded and as a result, the details are missing in the report.

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

No branches or pull requests

2 participants