Skip to content

No stack trace without message attribute in JUnit xml file #770

@VladimirMiller

Description

@VladimirMiller

I'm submitting a ...

  • bug report
  • 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 report generated using JUnit XML plugin from a file without "message" attribute in "failure" tag does not provide any opportunities to expand stack trace.

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem

  1. Generate report using JUnit XML plugin (allure generate xmlReportsFolder).
  2. Open report.
  3. Check block with stacktrace:

actual

XML example:
TEST-withoutMessage.xml

What is the expected behavior?

Some opportunity to see a stack trace.

Something like this (without failure message ofc):
expected

XML example:
TEST-withMessage.xml

What is the motivation / use case for changing the behavior?

This kind of XML reports is generated by instrumentation tests in Android. And it's not depending on how tests are written.

Please tell us about your environment:

Allure version 2.6.0
Test framework junit@4.12
Allure adaptor -
Generate report using cmd

Other information

I guess that this bug may be fixed by adding some default value for a message field in JUnit plugin.

Generated json for failed test:
allure-report/data/test-cases/failedTest.json

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions