Skip to content

Conversation

@sschuberth
Copy link
Member

Please have a look at the individual commit messages for the details.

@codecov
Copy link

codecov bot commented Oct 6, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 57.53%. Comparing base (07ad92a) to head (ca67f12).
⚠️ Report is 11 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main   #10947      +/-   ##
============================================
- Coverage     57.58%   57.53%   -0.06%     
+ Complexity     1705     1703       -2     
============================================
  Files           346      346              
  Lines         12833    12833              
  Branches       1212     1212              
============================================
- Hits           7390     7383       -7     
- Misses         4978     4985       +7     
  Partials        465      465              
Flag Coverage Δ
funTest-docker 71.03% <ø> (ø)
funTest-non-docker 32.70% <ø> (-0.24%) ⬇️
test-ubuntu-24.04 42.33% <ø> (ø)
test-windows-2025 42.31% <ø> (ø)

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.

Extract several classes as separate test fixtures for a better overview
and to allow code sharing.

As part of that,

- get rid of the "org.ossreviewtoolkit.scanner.scanners" package in tests
  as no such package exists in the "main" source set,
- combine two `createScanner()` functions (which requires a minor change
  to some expected results),
- move `MultipleScannersTest` to the "test" source set as it now really is
  a non-functional test in the sense that it does not depend on a VCS
  tool for provenance resolution anymore.

Note that the "test" source set is automatically configured to depend on
the "testFixtures" source set of the same module [1], so only the custom
"funTest" source set needs to have the dependency added.

[1]: https://github.com/gradle/gradle/blob/v9.1.0/platforms/jvm/plugins-jvm-test-fixtures/src/main/java/org/gradle/api/plugins/JavaTestFixturesPlugin.java#L92-L95

Signed-off-by: Sebastian Schuberth <[email protected]>
@sschuberth sschuberth marked this pull request as ready for review October 7, 2025 07:18
@sschuberth sschuberth requested a review from a team as a code owner October 7, 2025 07:18
@sschuberth sschuberth enabled auto-merge (rebase) October 7, 2025 07:18
This will ease running only these test in an environment that provides
the required tools. Unit tests are not tagged as they by definition
should not depend on external tools.

Note that this does not require to add another `Tag` class because the
whole spec is tagged via an annotation that takes a string instead [1].

[1]: https://kotest.io/docs/framework/tags.html#tagging-a-spec

Signed-off-by: Sebastian Schuberth <[email protected]>
The tag just disabled a case in `DefaultNestedProvenanceResolverFunTest`.
Explicitly disable the case instead with a dedicated comment about the
bug.

Signed-off-by: Sebastian Schuberth <[email protected]>
@sschuberth sschuberth merged commit bea2f16 into main Oct 8, 2025
27 checks passed
@sschuberth sschuberth deleted the tag-tests branch October 8, 2025 14:20
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