Closed tinytub closed 3 years ago
My bad. There were some missing pieces. I fixed that and also made some improvements. Thanks
@ray-x when I run :GoTestFunc
I got an error Unable to find any nodes. Is your query correct?
.
In my understanding, I need to point the cursor to the test function and run the above command. Any idea?
You should be able to test the current test function if the cursor is inside the test function scope. (anywhere from function name to end of the function
@ray-x yes, I placed the cursor in the function name but still got the unable to find any nodes
error. I already install gotests and available on my path.
Would you send a screen shot or your code snippet so I can reproduce it?
Also gotests
is not a unit test tool. It is used to generate table-driven test cases. It is irreverent to test runner
@ray-x I want to test this function: https://github.com/0chain/gosdk/blob/rizary-wallet-zboxsdk/wasm/wallet_test.go#L21
normally we use GOOS=js GOARCH=wasm go test -v github.com/0chain/gosdk/wasm -run TestSetWalletInfo
Suppose you export GOOS and GOARCH before you run neovim. It should work.
Did you update and install treesitter? That is required to parse the function name.
Do you see any error if you runcheckhealth
@ray-x thank you, it seems I have not setup the treesitter well. Thanks again for the plugin, it helps me as nvim beginner.
run GoTestFunc in my test function and got an error
Is there some dependence I missed ?