Skip to content

test: Add test for CycloneDX XML with authors #10271

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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

MarcelBochtler
Copy link
Member

This test is currently expected to fail due to a bug in the cyclonedx-core-java 1.

@MarcelBochtler MarcelBochtler requested a review from a team as a code owner May 6, 2025 11:26
@MarcelBochtler MarcelBochtler marked this pull request as draft May 6, 2025 11:26
@MarcelBochtler MarcelBochtler force-pushed the invalid-cyclonedx-xml branch 2 times, most recently from f1560eb to e075508 Compare May 6, 2025 11:35
@@ -94,6 +96,30 @@ class CycloneDxReporterFunTest : WordSpec({
}
}

"create the expected XML file with authors" {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe instead of adding a new separate test, it would make sense to instead enhance the input of "create the expected XML file". For enhancing it withAuthors() imo is ok. Furthermore, the analog JSON test case IMO should also use / keep on using the same input, so that XML and JSON tests remain analog.

@sschuberth

This comment was marked as outdated.

Copy link

codecov bot commented May 6, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 56.46%. Comparing base (d4c6d1b) to head (44103f4).

Additional details and impacted files
@@            Coverage Diff            @@
##               main   #10271   +/-   ##
=========================================
  Coverage     56.46%   56.46%           
  Complexity     1605     1605           
=========================================
  Files           331      331           
  Lines         12262    12262           
  Branches       1141     1141           
=========================================
  Hits           6924     6924           
  Misses         4889     4889           
  Partials        449      449           
Flag Coverage Δ
test-ubuntu-24.04 40.24% <ø> (ø)
test-windows-2022 40.22% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

This test is currently expected to fail due to a bug in the
cyclonedx-core-java [1].

[1]: CycloneDX/cyclonedx-core-java#638

Signed-off-by: Marcel Bochtler <[email protected]>
@MarcelBochtler MarcelBochtler force-pushed the invalid-cyclonedx-xml branch from e075508 to 44103f4 Compare May 6, 2025 12:27
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.

3 participants