-
Notifications
You must be signed in to change notification settings - Fork 39
feat: add junit xml and html test reports #1655
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Signed-off-by: Sam Gammon <sam@elide.dev>
5cca244 to
9eff1ce
Compare
Signed-off-by: Sam Gammon <sam@elide.dev>
Signed-off-by: Sam Gammon <sam@elide.dev>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds test reporting capabilities to the Elide tooling framework by implementing both JUnit XML and HTML test report generation. The implementation supports converting Elide test results into standard formats that can be consumed by CI/CD systems, IDEs, and test reporting tools.
Key changes:
- Extended test data structures to include individual test results alongside aggregate statistics
- Implemented JUnit XML reporter with proper data model and formatting
- Created interactive HTML reporter with search, filtering, and collapsible sections
Reviewed Changes
Copilot reviewed 14 out of 15 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
| TestRunResult.kt | Added testResults property to include individual test case results |
| TestPostProcessor.kt | Updated interface documentation and method signature formatting |
| TestPostProcessingOptions.kt | Added report format, output path, and suite name configuration options |
| TestReportProcessorTest.kt | Comprehensive test suite for both XML and HTML report generation |
| ElideTestRunner.kt | Modified to collect individual test results for reporting |
| JUnitXmlReporter.kt | Core XML report generation logic with JUnit format compliance |
| JUnitXmlModel.kt | Data models for JUnit XML structure with Jackson annotations |
| HtmlTestReporter.kt | HTML report generator using kotlinx-html DSL |
| HtmlTestModels.kt | Data models and conversion logic for HTML reports |
| HtmlTemplateBuilder.kt | HTML template generation with embedded CSS and JavaScript |
| HtmlAssets.kt | Embedded CSS and JavaScript assets for interactive features |
| TestReportProcessor.kt | Main processor implementation with format switching |
| build.gradle.kts | Added Jackson XML dependencies |
| elide.versions.toml | Added jackson-dataformat-xml dependency version |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Summary
Coming soon; supersedes #1652.