buildspace / buildspace-projects

The home of our open-source projects.
https://buildspace.so/projects
Creative Commons Attribution Share Alike 4.0 International
3.01k stars 1.09k forks source link

Potential trouble when running `Anchor test` to build, deploy and test in one command #1610

Closed 0xk2 closed 1 year ago

0xk2 commented 1 year ago

The problem

I have a quite old mac so my Solana build is somewhat a frankenstein with some binary I built myself and some come from pre-built official version. This bring me to various problem when using anchor test to go through buid -> deploy -> test automatically.

How I fix it

I find out that the best way to learn Anchor is starting with the whole process of buid -> deploy -> test. Then be able to run my own local validator then use anchor test --skip-local is quite helpful. I follow the instruction here with all the program ID configuration process and it works nicely.

helloitsm3 commented 1 year ago

Seems like you didn't rebase your commit. Please ensure that you're working on the latest copy. Thanks