Giter VIP home page Giter VIP logo

Comments (4)

renatoathaydes avatar renatoathaydes commented on August 14, 2024

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.

tilmanginzel avatar tilmanginzel commented on August 14, 2024

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.

renatoathaydes avatar renatoathaydes commented on August 14, 2024

This bug is already fixed, right @tilmanginzel ? Pretty sure I released the fix?!

from spock-reports.

tilmanginzel avatar tilmanginzel commented on August 14, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.