You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a feature like `22_0` is selected, the build script will automatically download the bitcoin core version `22.0`, verify the hashes and place it in the build directory for this crate.
17
+
Use utility function `downloaded_exe_path()` to get the downloaded executable path.
18
+
19
+
### Example
20
+
21
+
In your project Cargo.toml, activate the following features
22
+
23
+
```toml
24
+
25
+
[dev-dependencies]
26
+
bitcoind = { version = "0.20.0", features = "22_0" }
I used integration testing based on external bash script launching needed external processes, there are many issues with this approach like:
42
+
43
+
* External script may interfere with local development environment https://github.com/rust-bitcoin/rust-bitcoincore-rpc/blob/200fc8247c1896709a673b82a89ca0da5e7aa2ce/integration_test/run.sh#L9
44
+
* Use of a single huge test to test everything https://github.com/rust-bitcoin/rust-bitcoincore-rpc/blob/200fc8247c1896709a673b82a89ca0da5e7aa2ce/integration_test/src/main.rs#L122-L203
45
+
* If test are separated, a failing test may fail to leave a clean situation, causing other test to fail (because of the initial situation, not a real failure)
46
+
* bash script are hard, especially support different OS and versions
47
+
18
48
## Features
19
49
20
50
* It waits until bitcoind daemon become ready to accept RPC commands
0 commit comments