Skip to content

Commit

Permalink
chore(tests): add test README (#149)
Browse files Browse the repository at this point in the history
add test README
  • Loading branch information
kmd-fl authored Dec 19, 2023
1 parent 963ef5a commit ac5fc97
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/tests/decider-distro-tests-rs/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Decider Tests

To run tests:
- Install IPFS CLI and run the IPFS daemon using command `ipfs daemon`.
- Upload tests resources to IPFS `./resources/upload.sh`.
- Set the path to your IPFS CLI binary `export IPFS_CLI_PATH=<path_to_ipfs_binary>`.
- To run tests, you may call `cargo nextext run --release`.
- To see logs, you need to use `--no-caputre` flag.


If you want to debug a specific test, you may enable logs using `enable_decider_logs()` function at the start of the test.
You also can modify `enable_decider_logs` (`tests/utils/mod.rs`) to enable more logs.

0 comments on commit ac5fc97

Please sign in to comment.