Comments (4)
After merging your PR and pulling from master, I think this issue comes from this line: org.spockframework.runtime.model.FeatureInfo:136#getIterationNameProvider
, after being called from com/athaydes/spockframework/report/internal/HtmlReportCreator.groovy:156
.
By the way, there's a branch called next
which is supposed to be target for pull requests (so unreleased features do not show up in master). Please use that if possible.
from spock-reports.
Yeah sorry, I will use the next
branch in the future.
Here is an example specification which produces the error.
class BrokenSpec extends Specification {
@Shared def x = 1/0
@Unroll()
def "broken feature with #x"() {
expect:
x == 1
where:
x << [1, 2, 3]
}
}
So, if an initialization error is thrown and you try to use the #variable
syntax in the description, it fails. Most probably because the data provider is still empty at that point. The fix is quite simple, I will provide a pull request soon.
from spock-reports.
This bug is already fixed, right @tilmanginzel ? Pretty sure I released the fix?!
from spock-reports.
Yes, it was fixed on master
in June, so it definitely should be in the latest release 1.2.13.
from spock-reports.
Related Issues (20)
- Code blocks are not shown in the Report for Features with @Requires Annotation HOT 6
- Groovy 4 support HOT 5
- The VividAstInspector does not preserve relative indents HOT 2
- Where code blocks are missing their source code HOT 13
- nextSpecExtraInfo() method signature change from 2.2.0-groovy-3.0 HOT 9
- Report is not generated when all class tests have @ignore HOT 7
- Integrate GEB screenshots as part of the Spock-Reports feature HOT 3
- Tests with parameters but without @Unroll will have extraInfo all grouped to first iteration HOT 10
- @Shared Resources that reports extraInfo during the test are throwing exception and info are added to header instead HOT 1
- MalformedJsonException when parallel HOT 1
- Single Page Report HOT 6
- Group and/or exclure tests by annotation HOT 1
- extraInfo is not displayed for tests without data set HOT 7
- Exception on ReportDataAggregator HOT 4
- Error with customized template report creation HOT 7
- Can't set source directory HOT 6
- How it should be configured with `jvm-test-suite` HOT 1
- Temporary solution to embed screenshots and html snapshots into report with GEB and spock-reports HOT 3
- Discussion - how to generate feature file HOT 1
- @Unroll annotation support HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spock-reports.