Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[no tests to run] #28

Open
Abzwingten opened this issue Apr 13, 2022 · 3 comments
Open

[no tests to run] #28

Abzwingten opened this issue Apr 13, 2022 · 3 comments

Comments

@Abzwingten
Copy link

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?

@web3coach
Copy link
Owner

Hmm what OS are u on?

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

@Abzwingten
Copy link
Author

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.

@web3coach
Copy link
Owner

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants