Code Monkey home page Code Monkey logo

Comments (10)

davidbanham avatar davidbanham commented on May 22, 2024 1

@sashaweiss Yep, was fixed here:

a726187

from testify.

tylerstillwater avatar tylerstillwater commented on May 22, 2024

Right. The same thing happens in Sublime Text. The reason is that testify uses \b and \r to overwrite the output of the testing framework since it prints out the wrong location. Testify replaces that with the correct location that it finds.

I am not sure what, if anything, can be done about this. Any thoughts?

from testify.

shmup avatar shmup commented on May 22, 2024

fatih responded basically saying that I could add a command like :GoTestify which would parse the output. He raised a good point. Other testing suites may have other issues, and he doesn't want to spend time with all of them.

For now I'm just going to use a simple wrapper: https://gist.github.com/karlseguin/5128442 but eventually I'd like to get back to testify.

I'll admit I haven't given the solution much thought. Maybe this weekend.

from testify.

tylerstillwater avatar tylerstillwater commented on May 22, 2024

He says we need a testing compatible output. I agree with that. We will be addressing this in #84.

from testify.

yasker avatar yasker commented on May 22, 2024

Would there be a update for this issue in the near future? It becomes the major reason currently I am reluctant to use testify. I just tried it and hit by this issue immediately, have to switch back to standard framework...

from testify.

nmiyake avatar nmiyake commented on May 22, 2024

This affects running tests directly in IntelliJ as well.

I believe this is a real issue with alignment -- it has to do with outputting tabs instead of aligning properly via spaces for output. The update to put "expected:" and "received:" on different lines helps somewhat, but the issue still exists:

From terminal:

image

Using IntelliJ runner:

image

I have code that I believe fixes this -- it works in the IntelliJ runner and terminal, maintains the same output, and I believe it is more functionally correct. Will open as a PR shortly.

from testify.

rantav avatar rantav commented on May 22, 2024

I have this issue as well (using vim-go), is there a fix for that?

from testify.

nmiyake avatar nmiyake commented on May 22, 2024

@rantav can you check out my branch with the fix (https://github.com/nmiyake/testify/tree/fixFailOutput, which is the basis for the PR #364) and see if that resolves the issue? I can try to set up vim-go and see if I can repro the issue and if my fix addresses it.

I opened the potential fix PR in late October but unfortunately have not received any feedback on it yet.

from testify.

rantav avatar rantav commented on May 22, 2024

Thanks @nmiyake but unfortunately for vim-go that still doesn't seem to work...

from testify.

sashaweiss avatar sashaweiss commented on May 22, 2024

Hey all - was there resolution on this, or a lasting workaround? Running into this myself currently, and it's driving me nuts.

from testify.

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.