fruch / pytest-elk-reporter

A plugin to send pytest test results to ELK stack
MIT License
18 stars 12 forks source link

Add support of reporting subtest #32

Closed fruch closed 3 months ago

fruch commented 4 months ago

when one uses pytest-subtests plugin, this plugin was able to report only the last report from the test, which is passing always (if no setup/teardown issues, or failure outside of the context of subtests), and the subtest failure were lost and not counted/reported.

this change is fixing this, and collects all of the reports during a test and report them each on it's own.

this introduce a new field to the output of a test report, subtest if it's a report from subtest, it would be the message of that subtest.

Fixes: #28

fruch commented 4 months ago

@tchaikov @yarongilor, FYI

codecov[bot] commented 4 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 92.47%. Comparing base (205cd85) to head (5f4f6a9).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #32 +/- ## ========================================== + Coverage 92.36% 92.47% +0.10% ========================================== Files 1 1 Lines 275 279 +4 ========================================== + Hits 254 258 +4 Misses 21 21 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

fruch commented 3 months ago

@tchaikov what do you think about this one ?

I do want to squeeze that in too, and make a release