Giter Site home page Giter Site logo

Comments (9)

aldanor avatar aldanor commented on July 30, 2024 1

@la10736 Thanks for replying so fast!

Change it today means introduce a breaking change.

Technically - yes, agreed (however, you're not 1.0 yet, so breaking changes are kind of expected?). However, to be honest I can't picture a real situation where this change would be actually breaking anything - except for a single test in rstest's test suite itself.

Remove it when there isn't any trace attribute

That sounds like the best way to do it, I think. If you're tracing things - you're going to be looking at stdout capture anyway. If you're not tracing anything - there's no reason to write anything to stdout.

Use a feature flag to enable it

You mean enable printlns if tracing is disabled? I think it's a bit of an overkill to be honest - can you imaging anyone having this flag turned on in their dev-dependencies? Why would they? If you want those printlns for whatever reason, it's a temporary thing and not a permanent one. Temporary things are usually enabled either at runtime or via env vars; permanent ones via cargo manifests. Maybe more suitable is an environment variable then instead of a feature flag?

from rstest.

la10736 avatar la10736 commented on July 30, 2024

from rstest.

aldanor avatar aldanor commented on July 30, 2024

@la10736 Wonder if there's any further thoughts on this? Or is any help with PR needed?

from rstest.

la10736 avatar la10736 commented on July 30, 2024

from rstest.

la10736 avatar la10736 commented on July 30, 2024

Ok, you've convinced me. I'll just remove it if there isn't any trace.

from rstest.

la10736 avatar la10736 commented on July 30, 2024

Done.

from rstest.

aldanor avatar aldanor commented on July 30, 2024

Done.

Thanks! 👍

from rstest.

Mart-Bogdan avatar Mart-Bogdan commented on July 30, 2024

It still shows to me. No trace flags was provided. or #[case] is trace, and I didn't understand correctly what it meant by it?

from rstest.

Mart-Bogdan avatar Mart-Bogdan commented on July 30, 2024

Oh it is unreleased yet. I see. So can live with this output for now, and wait for release.

Thanks!

from rstest.

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.