allure-framework / allure-framework/allure-python

Allure-pytest: report.longrepr information just available in allure web app if test fails with an exception

Offen
#558 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
task:new feature theme:pytest
Vorherrschende Sprache
Python
Sterne
814
Forks
260
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

[//]: # (
. Note: for support questions, please use Stackoverflow or Gitter**.
. This repository's issues are reserved for feature requests and bug reports.
.
. In case of any problems with Allure Jenkins plugin** please use the following repository
. to create an issue: https://github.com/jenkinsci/allure-plugin/issues
.
. Make sure you have a clear name for your issue. The name should start with a capital
. letter and no dot is required in the end of the sentence. An example of good issue names:
.
. - The report is broken in IE11
. - Add an ability to disable default plugins
. - Support emoji in test descriptions
)

#### I'm submitting a ...
- [ ] bug report
- [X] feature request
- [ ] support request => Please do not submit support request here, see note at the top of this template.

#### What is the current behavior?

Allure-pytest plugin just show failure information if the test throws an exception.

https://github.com/allure-framework/allure-python/blob/5e7bc860b5ddc1e072b0302022669183f2c4321f/allure-pytest/src/listener.py#L161-L182

#### What is the motivation / use case for changing the behavior?
Some useful plugins, like [pytest-check](https://github.com/okken/pytest-check), allow a non-fatal assertion behaviour modifying "report.longrepr" variable. "report.longrepr" could be valuable to get extra information in case of fail without exception information.

#### Please tell us about your environment:

- Allure version: 2.13.8
- Test framework: pytest@6.2.2
- Allure adaptor: allure-pytest@2.8.32

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Beginne in allure-pytest/src/listener.py in den Zeilen 161-182 und untersuche, wie Fehlerinformationen derzeit gesammelt werden. Verfolge die Verarbeitung von pytest-Berichten für Fehler ohne Ausnahmen. Mache anschließend report.longrepr im Allure-Webbericht verfügbar; fertig ist es, wenn nicht-fatale Assertion-Details aus Plugins wie pytest-check angezeigt werden.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
python
Bereich
testing
Issue-Typ
Feature
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
45/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.