Skip to content

Add standalone @DataProvider methods - #2379

Draft
leonard84 wants to merge 7 commits into
spockframework:masterfrom
leonard84:standalone-data-provider-methods
Draft

Add standalone @DataProvider methods#2379
leonard84 wants to merge 7 commits into
spockframework:masterfrom
leonard84:standalone-data-provider-methods

Allow an optional leading where: label in @DataProvider methods

fbe9214
Select commit
Loading
Failed to load commit list.
Codecov / codecov/project succeeded Jul 11, 2026 in 0s

82.50% (+0.17%) compared to b2699ee

View this Pull Request on Codecov

82.50% (+0.17%) compared to b2699ee

Details

Codecov Report

❌ Patch coverage is 87.52197% with 71 lines in your changes missing coverage. Please review.
✅ Project coverage is 82.50%. Comparing base (b2699ee) to head (fbe9214).
⚠️ Report is 12 commits behind head on master.

Files with missing lines Patch % Lines
...framework/compiler/DataProviderMethodRewriter.java 88.98% 9 Missing and 17 partials ⚠️
...rg/spockframework/runtime/DataIteratorFactory.java 70.42% 10 Missing and 11 partials ⚠️
...pockframework/runtime/StandaloneDataProviders.java 74.07% 7 Missing and 7 partials ⚠️
...mework/runtime/StandaloneDataIterationContext.java 87.50% 5 Missing ⚠️
...ork/compiler/DataProviderMethodTransformation.java 78.57% 3 Missing ⚠️
...framework/runtime/FeatureDataIterationContext.java 97.14% 0 Missing and 1 partial ⚠️
.../org/spockframework/runtime/IBaseDataIterator.java 50.00% 1 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff              @@
##             master    #2379      +/-   ##
============================================
+ Coverage     82.33%   82.50%   +0.17%     
- Complexity     4877     5005     +128     
============================================
  Files           474      481       +7     
  Lines         15205    15620     +415     
  Branches       1935     1984      +49     
============================================
+ Hits          12519    12888     +369     
- Misses         1993     2015      +22     
- Partials        693      717      +24     
Files with missing lines Coverage Δ
...java/org/spockframework/compiler/AstNodeCache.java 100.00% <100.00%> (ø)
.../java/org/spockframework/compiler/BlockParser.java 100.00% <100.00%> (ø)
...n/java/org/spockframework/compiler/SpecParser.java 93.40% <100.00%> (-1.98%) ⬇️
...rg/spockframework/compiler/WhereBlockRewriter.java 95.51% <100.00%> (+0.26%) ⬆️
...work/runtime/StandaloneDataProviderDescriptor.java 100.00% <100.00%> (ø)
...framework/runtime/FeatureDataIterationContext.java 97.14% <97.14%> (ø)
.../org/spockframework/runtime/IBaseDataIterator.java 50.00% <50.00%> (ø)
...ork/compiler/DataProviderMethodTransformation.java 78.57% <78.57%> (ø)
...mework/runtime/StandaloneDataIterationContext.java 87.50% <87.50%> (ø)
...pockframework/runtime/StandaloneDataProviders.java 74.07% <74.07%> (ø)
... and 2 more
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.