conflux-rust-integration-test
Installation
SKILL.md
Pytest Integration Tests (Conflux Rust)
Quick workflow
- Choose location and reuse fixtures
- Pick the subdirectory under
integration_tests/tests(e.g.,rpc/,internal_contracts/,cross_space/,execution_spec_tests/). - Check for a local
conftest.pyand reuse/extend its fixtures.
- Pick framework and config
- Start from global fixtures in
integration_tests/tests/conftest.py(seereferences/fixtures.md). - If you need custom node counts or config, override
framework_classin your test module or localconftest.py. - Implement custom framework by subclassing
ConfluxTestFrameworkand overridingset_test_params()+setup_network().
- Create the test module
- Name the file with
testin it (e.g.,feature_test.py) underintegration_tests/tests/.... - Keep setup in fixtures; tests should rely on
network,cw3/ew3,core_accounts/evm_accounts, andinternal_contracts. - Prefer deterministic operations; avoid time-based sleeps unless no alternative exists.
- Add Python type hints for tests and fixtures.