Skip to content

[Enhancement]: JUnit reporters for test command - #451

Merged
joshfried-aws merged 23 commits into
aws-cloudformation:mainfrom
joshfried-aws:junit_test
Feb 6, 2024
Merged

joshfried-aws merged 23 commits into
aws-cloudformation:mainfrom
joshfried-aws:junit_test

Conversation

@joshfried-aws

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

Copy link
Copy Markdown
Contributor

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
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.

5 participants