Skip to content

test: Reorganize the integration tests for better navigability and maintainability.#271

Open
TarikGul wants to merge 11 commits into
mainfrom
tg-integration-test-reorg
Open

test: Reorganize the integration tests for better navigability and maintainability.#271
TarikGul wants to merge 11 commits into
mainfrom
tg-integration-test-reorg

Conversation

@TarikGul
Copy link
Copy Markdown
Member

@TarikGul TarikGul commented Mar 5, 2026

Summary

Reorganizes the integration tests for better navigability and maintainability. This PR addresses the growing complexity of the test suite by:

  • Restructuring fixtures from flat directories into nested chain/feature organization
  • Splitting the large coretime.rs file (2858 lines) into focused submodules
  • Adding shared test helpers to reduce boilerplate
  • Updating documentation to reflect the new structure

closes: #88

filvecchiato
filvecchiato previously approved these changes Mar 9, 2026
println!("ok: Coretime regions sorting test passed");
Ok(())
}

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think these two lines are the last lines of the test_coretime_regions_sorting function in regions.rs

@@ -0,0 +1,486 @@
// Copyright (C) 2026 Parity Technologies (UK) Ltd.
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[[test]]
name = "coretime"
path = "tests/coretime/mod.rs"

I think we need to add this [[test]] entry to Cargo.toml, otherwise Cargo won't discover the coretime tests

Copy link
Copy Markdown
Contributor

@Imod7 Imod7 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Under tests/fixtures we have 2 folders

  • asset-hub-kusama
  • asset-hub-polkadot

but also another 2 folders

  • kusama-asset-hub
  • polkadot-asset-hub

Maybe we could keep only one pair and put all files there ?

Examples of fixtures that exist but are not used

  • polkadot/blocks/10000001.json
  • polkadot/staking/progress_12000.json
  • validators_11350267.json
  • storage_5000000_v13.json
  • storage_10000000_v14

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Reorganizing Integration Tests by Endpoint Type in order to scale

4 participants