Comments (10)
@sashaweiss Yep, was fixed here:
from testify.
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.
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.
He says we need a testing compatible output. I agree with that. We will be addressing this in #84.
from testify.
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.
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:
Using IntelliJ runner:
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.
I have this issue as well (using vim-go), is there a fix for that?
from testify.
@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.
Thanks @nmiyake but unfortunately for vim-go that still doesn't seem to work...
from testify.
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)
- Is it possible to assert for multiple allowed values? HOT 2
- Proposal: guard or support comparing with untyped nil HOT 5
- assert/require.Len doesn't print anything if the slice is too long HOT 7
- Allow user to skip (ignore) specific caller frames in assert.CallerInfo() HOT 1
- Unexpected call when interface is parameter HOT 4
- How can I get coverage in the Suite package HOT 6
- Fix CVE-2022-28948 - Remove `gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c` HOT 3
- assert: Equal does not consider Zone information in time.Time
- Update Github actions workflows from nodejs 16 to nodejs 20 before "Spring 2024" HOT 1
- mock: Call.NotBefore still expects calls removed with Call.Unset HOT 6
- unnecessary/incorrect log call in AssertExpectations HOT 2
- Data race when mock is called with refernce to same object as expectation HOT 1
- assert fails and expects to dereference a reference HOT 1
- Add GoLang 1.22 to CI Testing Matrix for Package Compatibility Verification HOT 2
- error while importing github.com/stretchr/testify/suite: read C:\Program Files\Go\src\math\huge_test.go: unexpected NUL in input HOT 1
- AnythingOfType is marked deprecated on pkgsite HOT 1
- .On().Return() doesn't enforce expectation for the returned value HOT 1
- v1.9.0 breaks float comparisons with EqualValues HOT 6
- mock: cleanup argument matching API HOT 7
- Integer overflow in time.Time comparison
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from testify.