Code Monkey home page Code Monkey logo

Comments (5)

geemus avatar geemus commented on August 15, 2024

I don't think I entirely follow. What command are you running and/or what code are you changing to redirect to a file? I can see the problem in the difference between results, but I want to make sure I am duplicating it correctly before working to fix it. Thanks!

from formatador.

bkabrda avatar bkabrda commented on August 15, 2024

I'm running something like shindo > a.txt, so the whole tests output goes into a file.

from formatador.

geemus avatar geemus commented on August 15, 2024

Ok, I see now. Just wanted to make sure I was on the same page. I believe the issue you are running into is because before outputting stuff it checks to see if stdout is tty. When outputting to a file like this, I presume that it would not be, so it will strip formatting first. The tests expect to be run against tty so they can check the formatting. Is there a particular use case that requires outputting to a file?

from formatador.

bkabrda avatar bkabrda commented on August 15, 2024

Indeed, I am packaging formatador for Fedora and we need to build in Koji, where all output is redirected to a file, so the tests fail and the whole build fails. So it would be fine if the tests could react to this situation.

from formatador.

bkabrda avatar bkabrda commented on August 15, 2024

Thank you, works like a charm.

from formatador.

Related Issues (15)

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.