Skip to content
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

[Enhancement]: JUnit reporters for test command #451

Merged
merged 23 commits into from Feb 6, 2024

Conversation

joshfried-aws
Copy link
Contributor

@joshfried-aws joshfried-aws commented Feb 5, 2024

Issue #, if available:
#265

Description of changes:
This PR adds a new JUnit reporting mechanism for the test command. This new output format has the same requirements as mentioned in #447.

In addition to this implementation I have also gone ahead and split up the legacy reporting behaviour from the test.rs file, and created a GenericReporter struct that is now responsible for the legacy reporting behaviour.

While adding these 2 new reporting structs, I refactored the package structure for the validate reporters, we now have a reporters mod, and inside of that there is a mod for test, and validate.

Also includes misc changes to reduce code duplication between the different reporting mechanisms for the test command


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

@joshfried-aws joshfried-aws merged commit 193c306 into aws-cloudformation:main Feb 6, 2024
15 checks passed
dannyvassallo pushed a commit to dannyvassallo/cloudformation-guard that referenced this pull request Feb 9, 2024
* init commit for junit reporter WIP / MVP example

* misc tweeks

* updating install script to check for architecture and download the correct artifactj

* [misc]: temp

* cleanup

* cleanup

* updating error codes for ffi

* cleanup

* uncommenting junit test

* [misc]: temp

* cleanup

* init commit junit reporters for test command

* removing rust fmt file

* removing unused file

* fix breaking build

* updating exit code to use contant over literals

* refactoring project structure

* cleanup

* cleanup

* rebasing + merge conflicts

* creating generic reporter for test command, and refactoring legacy reporting behaviour to this struct

* updating exit code to use contant over literals

* refactoring some duplicated code among the test reporters
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.

None yet

5 participants