eroshenkoam / xcresults

53 stars 28 forks source link

Group name is missing in full test name / suites info not populated #8

Open dkorobtsov opened 4 years ago

dkorobtsov commented 4 years ago

I actually noticed 2 different problems, suspect that second is side effect of first one. Problem 1: On allure Server in test case details full test name is displayed like: ().Class/Method

Steps to reproduce:

  1. Generate allure-results using xcresults tool
  2. Upload results to Allure Server
  3. Open test cases tree, select any test, check full name in test case panel header

Expected result: Full name is properly populated: Group.Class.Method Actual result: ().Class/Method

Problem 2:

  1. Generate allure-results using xcresults tool
  2. Upload results to Allure Server
  3. Open Launch overview, check Suites widget

Expected result: suites widget is properly populated Actual result: suites widget is empty

aneee004 commented 1 year ago

Hey, I still see that the suite name is not populated in allure results.

XCTestResults:

| UITestingTarget
| ---- Class 1
| -------- test 1
| -------- test 2
| ---- Class 2
| -------- test A
| -------- test B

Allure Results

| UITestingTarget
| ---- test 1
| ---- test 2
| ---- test A
| ---- test B

@kristfoograb would you be able to fix it? I believe it's this line that causes the issue. ExportCommand.getTestMeta() exportMeta.label(SUITE, testableSummary.get(TARGET_NAME).get(VALUE).asText());

Where the Suite should be parsed from testable summary instead of the target name.

aneee004 commented 1 year ago

@eroshenkoam can this issue be addressed?