Comments (5)
@Zzhiter Just investigated, and it seems with --strace
xgo will block when there are many tests to run.
I suggest adding --strace
to only individual case, for example:
xgo test -run 'TestDecoder/#08' --strace ./internal/encoding/json
This will generate corresponding trace, and will not block.
from xgo.
Thanks for reporting this issue. Few questions:
- May I know which repository you are working on?(knowing the project structure helps)
- Which go version is being used?
- After you manually add
import _ "github.com/xhd2015/xgo/runtime/trace"
, have you rungo mod tidy
? - Can you run with normal go(i.e. without xgo) to see if the tests still block?
from xgo.
- https://github.com/protocolbuffers/protobuf-go and the commit version is 235ef28b
Test file is protobuf-go/internal/encoding/json/decode_test.go - go version is 1.21.9
- Yes, I have run it
- Normal go test will not block
from xgo.
Thanks, will investigate as soon as possible
from xgo.
Wow, thanks for your help
from xgo.
Related Issues (20)
- mock patch带泛型结构体的方法panic HOT 5
- test-explorer: updating path overlapped
- test-explorer: integrate `--strace` HOT 2
- test-explorer: integrate incremental coverage
- reduce impact on build cache when xgo upgrades HOT 1
- test-explorer: headless execution mode
- 基于代码生成来 proxy go test 到 xgo HOT 15
- test-explorer: allow custom test args in test.config.json
- Failed to setup mock HOT 11
- Proposal: add `--debug` flag to automatically debug test from command line, without relying on IDE buttons
- IDE Integration: fake go script to integrate with IDEs without plugin modification HOT 1
- fix cross compile: correct the behavior when GOOS & GOARCH are set to enable cross compile
- test-explorer: read test.config.json when opened from sub directory
- shadow: allow bypassing via XGO_SHADOW_BYPASS=true
- test-explorer: add `mock_rules` for test.config.json, and `--mock-rules` option for xgo
- test-explorer: fix windows test path
- Goland Xgo shadow HOT 2
- Error while mocking json.Marshall HOT 2
- Allow --mock-rule to specify for condition `Closure:true`
- test-explorer: auto update xgo if test.config.json says 'xgo.auto_update: true' 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 xgo.