File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -6,18 +6,18 @@ These tests use dfx to stand up and interact with a local Internet Computer inst
66To ensure test isolation, they run in a temporary HOME directory and
77** cannot use the dfx shim from dfxvm** .
88
9- To run the tests:
9+ To run the tests, it's necessary to set the ICPTEST_DFX_PATH environment variable
10+ to a valid dfx path. Here is one way to do this:
1011
1112```
12- # Ensure dfx is installed
13+ # Ensure dfx is installed and the cache is populated
1314dfx cache install
1415
1516# Export the path to the actual dfx binary (not the shim)
1617export ICPTEST_DFX_PATH="$(dfx cache show)/dfx"
1718
18- # Run tests (may include #[ignore] tests depending on setup)
19+ # Run tests
1920cargo test
2021```
2122
22- If ICPTEST_DFX_PATH is not set, tests that depend on dfx will be skipped or marked as ignored.
23-
23+ If ICPTEST_DFX_PATH is not set, tests that depend on dfx will fail.
You can’t perform that action at this time.
0 commit comments