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)
- EqualExportedValues can compare two slices HOT 2
- Regexp accepts interface{} HOT 3
- Drop outdated/abandoned dependencies HOT 3
- Proposal: Must-like utility HOT 3
- Proposal: assert.NotElementsMatch() HOT 4
- assert: invalid memory address or nil pointer dereference for assert.Error on darwin/arm64 HOT 1
- mock: Diff is prone to data races HOT 1
- call.Unset() panics when call := mockObj.On("Foo", mock.AnythingOfType("foo")) HOT 1
- Proposal: assert.NoFieldIsEmpty HOT 13
- Feature request: add BeforeSetupTest and AfterTearDownTest HOT 3
- Misleading Error() docs HOT 3
- assert: Eventually should not leak a goroutine HOT 11
- Shuffle tests inside a Suite
- Support Custom Equality and Diff in Assert and Require
- go-difflib library v1.0.0 reached End Of Life HOT 1
- `Unset` removes all expected calls that satisfy (vs match) arguments in call being unset
- Require should support parallel execution, and should not abort all tests in case of failure HOT 1
- Functions which check for string matching got "non-library standard" signature HOT 2
- Hmm
- Assert.Equal show only diff
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.