Giter VIP home page Giter VIP logo

Comments (2)

tjs1989 avatar tjs1989 commented on May 29, 2024 1

Do you know len(clientSecrets) in advance? If so then you can construct the table passing in a counter for each entry that represents the index into clientSecrets which you construct dynamically in SynchronizedBeforeSuites. If you don't know len(clientSecrets) ahead of time then you won't be able to do this. Ginkgo doesn't support dynamically adding specs after tree generation time. At that point your options are:

  • fetch the client secrets in an init (though now every Ginkgo parallel process will fetch the secrets) and use that to construct the tree in the init.
  • overprovision the number of tests (e.g. if len(clientSecrets) < 100 you could just have a hundred entries and simply skip the ones that don't apply)
  • put it all in a single It.

Thanks for the prompt reply Onsi :)

Unfortunately we don't know the len of clientSecrets in advance. I think that I'll go down the init road as it feels like a fair trade off in order to ensure that we keep the use of running things in parallel, plus I don't think that having it all in a single It will ever get past a PR review here :)

from ginkgo.

onsi avatar onsi commented on May 29, 2024

Do you know len(clientSecrets) in advance? If so then you can construct the table passing in a counter for each entry that represents the index into clientSecrets which you construct dynamically in SynchronizedBeforeSuites. If you don't know len(clientSecrets) ahead of time then you won't be able to do this. Ginkgo doesn't support dynamically adding specs after tree generation time. At that point your options are:

  • fetch the client secrets in an init (though now every Ginkgo parallel process will fetch the secrets) and use that to construct the tree in the init.
  • overprovision the number of tests (e.g. if len(clientSecrets) < 100 you could just have a hundred entries and simply skip the ones that don't apply)
  • put it all in a single It.

from ginkgo.

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.