Running tests: instructions are unclear #996
Unanswered
KipCrossing
asked this question in
Question
Replies: 1 comment 2 replies
-
UPDATE: it looks like it will run on the mainnet. As contributors coming into this for the first time, we have no idea what the point of setting Also Some tests are failing though:
...
...
It looks like failing tests are being merged into main which also make the process confusing and a high barrier to entry for contributors. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey! I'm trying to run the tests locally. Context:
The instructions say to add into my env vars:
Quote:
ANVIL_FORK_URL
can be for any RPC service provider (e.g. Alchemy or Infura). Now you are ready to run the tests! In one terminal session, spin up Anvil usingpnpm anvil
. Next, in a different terminal session, you have the following options for running tests:Firstly, I assume that
ANVIL_FORK_URL
is meant to beVITE_ANVIL_FORK_URL
(please confirm this assumption).Secondly, when running
pnpm anvil
it'sListening on 127.0.0.1:8545
. Then when I runpnpm test
in a 'different terminal session' I get:Error: listen EADDRINUSE: address already in use :::8545
(let me know if you want the full error)Thirdly, I need more details around: "can be for any RPC service provider (e.g. Alchemy or Infura)" - I tried just 'pnpm test' with
VITE_ANVIL_FORK_URL=https://sepolia.infura.io/v3/API_KEY
but got problems with block numbers:Is this meant to be using a mainnet endpoint? If not, what testnet should I be using?
Or perhaps
VITE_ANVIL_BLOCK_NUMBER=16280770
is example only?I'm happy to update the doc after this discussion. If the docs can be clear for me (who's new to this) they should be clear for almost everyone coming to this.
Beta Was this translation helpful? Give feedback.
All reactions