Comments (4)
I believe this can be closed as this got merged: #54
from neotest-go.
Any general build message is not logged out as json, but should still be included in the output. E.g. import cycle
from neotest-go.
@Davincible do you have a solution in mind. FWIW AFAIK most go testing explodes if there is any error in the package so I view it not working with invalid code as normal. I wouldn't expect it to partially run since I don't think go supports that, happy to be corrected if there is a non overly complex way to do that.
Essentially, if there is no valid json then you can't really call any of the parsing functions since they expect json. I guess you'd need some other mechanism to pass the output string to neotest's output. Happy to review a PR 🤷🏿
from neotest-go.
I have the same issue, that when I run test, it show some warning so that neotest-go can not parse because it's invalid json,
should we add option '2>/dev/null' to the command execute unit test ?
This will show the warning:
go test ./x/distributionx/... -run TestKeeperTestSuite/TestAllocateTokens -v -json
cgo-gcc-prolog:217:2: warning: 'FSEventStreamScheduleWithRunLoop' is deprecated: first deprecated in macOS 13.0 - Use FSEventStreamSetDispatchQueue instead. [-Wdeprecated-declarations]
/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/FSEvents.framework/Headers/FSEvents.h:1138:1: note: 'FSEventStreamScheduleWithRunLoop' has been explicitly marked deprecated here
But this will work fine:
go test ./x/distributionx/... -run TestKeeperTestSuite/TestAllocateTokens -v -json 2>/dev/null
I am on Mac, and I don't know how to make it work on Window.
from neotest-go.
Related Issues (20)
- [feature request] Table-driven tests written as map[string]struct{} HOT 5
- Neotest Summary window is showing incorrect status HOT 2
- nil error on test single function HOT 5
- Error while testing a file/directory with failed test cases HOT 1
- 'No tests found' using minimal config HOT 40
- Test Output in JSON, making it difficult to read HOT 30
- Tests having warnings are marked as failed HOT 2
- Test coverage generation is not working properly due to cwd being changed to the test file directory. HOT 9
- Running package tests HOT 4
- Query: invalid structure at position 1288 for language go
- how to add test binary flags
- Cannot run spec tests HOT 3
- No Tests Found HOT 2
- Neotest-go not compatible with Go provided via pkgx HOT 1
- cannot run unit tests HOT 1
- neotest-go adapter being used for typescript files when repo has both typescript and go HOT 1
- Feat - Add Support for Nested Subtests
- Feature request: Add diagnostics for table tests. HOT 2
- Error with Neotest-go, subtests and skipping them. HOT 6
- "Run nearest" runs all tests HOT 1
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 neotest-go.