test: add 200 block regtest blockchain support#537
test: add 200 block regtest blockchain support#537xdustinface wants to merge 1 commit intov0.42-devfrom
Conversation
This improves the full rust dashd integration tests runtime on my MBP M2pro (including the coming mempool tests) from ~65s to ~35s. The 40k chain is still included for better coverage in wallet integration tests where it matter but this PR also adjusts few other tests where the 40k chain is not needed. Overview: - Rename `DASHD_DATADIR` to `DASHD_TEST_DATA` (root containing all variants) - Parameterize `setup-dashd.py` to download both `regtest-40000` and `regtest-200` variants into the shared root - Add `DashCoreConfig::from_env_variant()` to select a data variant - Extract shared init logic into `DashdTestContext::create()` - Add new `TestChain` enum, integrate it into `DashdTestContext::new` - Update `TEST_DATA_VERSION` to `v0.0.3`
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
📝 Coding Plan
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## v0.42-dev #537 +/- ##
=============================================
- Coverage 66.89% 66.85% -0.05%
=============================================
Files 313 313
Lines 64753 64753
=============================================
- Hits 43317 43289 -28
- Misses 21436 21464 +28
*This pull request uses carry forward flags. Click here to find out more. 🚀 New features to boost your workflow:
|
This improves the full rust dashd integration tests runtime on my MBP M2pro (including the coming mempool tests) from ~65s to ~35s.
The 40k chain is still included for better coverage in wallet integration tests where it matter but this PR also adjusts few other tests where the 40k chain is not needed.
Overview:
DASHD_DATADIRtoDASHD_TEST_DATA(root containing all variants)setup-dashd.pyto download bothregtest-40000andregtest-200variants into the shared rootDashCoreConfig::from_env_variant()to select a data variantDashdTestContext::create()TestChainenum, integrate it intoDashdTestContext::newTEST_DATA_VERSIONtov0.0.3