allure-framework / allure-framework/allure-phpunit
Unalbe to upload failure stacktraces from the phpunit framework
- Dominant language
- PHP
- Stars
- 66
- Forks
- 34
- PR merge metrics
- No merged PRs in 30d
Description
**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](https://github.com/allure-framework/allure-phpunit/blob/main/src/Event/TestFailedSubscriber.php#L31) 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.
Contributor guide
Research direction
Inspect src/Event/TestFailedSubscriber.php around line 31 and the PHPUnit failure event data used there. Run a deliberately failing PHPUnit test and compare the generated report with the failure details; done means the test result includes the failure stack trace, not only its message.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- testing
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100