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

tests: run test against actual schema files, not snapshots #256

Open
3 of 4 tasks
jkowalleck opened this issue Jun 21, 2023 · 4 comments
Open
3 of 4 tasks

tests: run test against actual schema files, not snapshots #256

jkowalleck opened this issue Jun 21, 2023 · 4 comments
Labels
chore: QA A chore related to Quality Assurance help wanted test-data related to test-resources and -data

Comments

@jkowalleck
Copy link
Member

jkowalleck commented Jun 21, 2023

Current implementation of java tests run against a snapshot of the schema files, shipped with org.cyclinedx java package.
This is undesired and error-prone, as changes to the schema files in this repo are not checked against the schema example files.
Therefore, most java checks in pull requests are just bogus results without any meaning.
This must change ASAP.

Use cases:

  • a PullRequest is opened, that modifies a schema file. tests must run based on these changes, not some snapshots.
  • a PullRequest is opened, that modify some test-resources. tests must run based on these changes.

acceptance criteria

  • all test run against the actual schema files in this repo, not against any other snapshots
  • optional, but preferred: tests run offline, do not load any data from external sources
  • all currently running tests still pass

scope

targets


caused by #255
related: https://cyclonedx.slack.com/archives/G01PMU9ERJA/p1687363757137109

@jkowalleck
Copy link
Member Author

@CycloneDX/core-team FYI

@CycloneDX/java-maintainers can you help out and fix the tests?

@jkowalleck jkowalleck changed the title tests: tun Java test against local schema files tests: run Java test against actual schema files, not snapshots Jun 21, 2023
@stevespringett
Copy link
Member

The latest schema from the 1.5-dev branch has been incorporated into the latest Core Java 7.4.0-SNAPSHOT

@jkowalleck
Copy link
Member Author

jkowalleck commented Jun 22, 2023

re: #256 (comment)
this does not solve the following purpose: a PR modifies the schema files. tests should run on these changes, not some snapshot. here is such a case: #255

@jkowalleck jkowalleck changed the title tests: run Java test against actual schema files, not snapshots tests: run test against actual schema files, not snapshots Jun 22, 2023
@jkowalleck
Copy link
Member Author

@mr-zepol mentioned he might be able to help out here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore: QA A chore related to Quality Assurance help wanted test-data related to test-resources and -data
Projects
None yet
Development

No branches or pull requests

2 participants