Skip to content

feat(testing): add Allure-compatible result exporter#1572

Open
diiviikk5 wants to merge 1 commit intomofa-org:mainfrom
diiviikk5:feat/testing-allure-exporter
Open

feat(testing): add Allure-compatible result exporter#1572
diiviikk5 wants to merge 1 commit intomofa-org:mainfrom
diiviikk5:feat/testing-allure-exporter

Conversation

@diiviikk5
Copy link
Copy Markdown
Contributor

@diiviikk5 diiviikk5 commented Apr 3, 2026

Closes #1568
image

Allure compatibility

Summary

Add a narrow AllureExporter to mofa-testing that converts TestReport results into Allure-compatible JSON result payloads.

What Changed

  • added AllureExporter
  • added serializable result types:
    • AllureTestResult
    • AllureStatusDetails
    • AllureLabel
    • AllureParameter
  • exported the new types through tests/src/report/mod.rs and tests/src/lib.rs
  • mapped TestCaseResult status into Allure-compatible status values
  • included suite/framework labels
  • represented report metadata as Allure parameters
  • added export_json() for deterministic JSON payload generation

Why

Even with JSON, text, Markdown, and JUnit-style reporting, mofa-testing still lacked a richer result-export path for teams that want artifact-friendly report consumers. This PR adds that layer without introducing a full Allure runtime integration system.

Testing

Ran:

cargo test -p mofa-testing --test report_tests

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(testing): add Allure-compatible result exporter for test reports

1 participant