Coder Social home page Coder Social logo

Comments (4)

keshavbiswa avatar keshavbiswa commented on July 28, 2024 1

Let me try it.

from faker.

stefannibrasil avatar stefannibrasil commented on July 28, 2024

awesome, thank you!

from faker.

keshavbiswa avatar keshavbiswa commented on July 28, 2024

So there are two approaches I see here,

  1. To use class accessors to capture stdouts only when the variable is true, (skip_during will yield and ensure it's set to false after)? This makes it easy to turn it on/off for individual tests, depending on what we want to assert?
  2. The other is to globally disable in in test_helper.rb, this is an easier approach, but makes it difficult to enable/disable individual tests.

@stefannibrasil Lmk what you think.

from faker.

stefannibrasil avatar stefannibrasil commented on July 28, 2024

hi @keshavbiswa thanks for working on this. Yeah, number 1 seems to be what we need. We want to be able to skip the output when explicitly adding a skip block. If we add the block is because we know the test will generate the warning but there's nothing we can do until the generator is removed/updated, if that makes sense.

from faker.

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.