the-blockchain-bar icon indicating copy to clipboard operation
the-blockchain-bar copied to clipboard

[no tests to run]

Open Abzwingten opened this issue 2 years ago • 3 comments

In branch c11_consensus, while running tests according to the book go test -timeout=0 -count=1 ./node -test.v -test.run ^TestNode_Run$, testing returns error:

testing: warning: no tests to run
PASS
ok      github.com/web3coach/the-blockchain-bar/node    0.003s [no tests to run]

I have installed tbb with usual go install ./cmd/..., it works. How do I launch tests?

Abzwingten avatar Apr 13 '22 18:04 Abzwingten

Hmm what OS are u on?

I am able to run it on Linux: Screenshot from 2022-04-14 09-40-54

web3coach avatar Apr 14 '22 07:04 web3coach

I'm also on linux. Global go test ./... works fine, but function testing with ^TestMine$, ^TestNode$ fail. I undestand that the problem is not in your code, but it is still a mystery. GO variables are set just fine.

Abzwingten avatar Apr 19 '22 18:04 Abzwingten

Hmmm, thinking what could be the difference between our environments.

Have you tried Googling a different technique for running an individual test function?

web3coach avatar Apr 20 '22 18:04 web3coach