scripts/ reorganization: - Sort 14 loose root scripts into subfolders: blockchain/ (genesis, proposer, mock chain, testnet BTC) dev/ (CLI wrapper, dev services, OpenAPI gen, systemd setup, domain proxy) ops/ (coordinator proxy, remote tunnel) gpu/ (miner workflow) - Merge scripts/testing/ into scripts/test/ (eliminate duplicate folder) - Create scripts/examples/ for usage demos and simulations Root-level cleanup: - Move home/ (12 simulation scripts) → scripts/examples/ - Move dev-utils/ (2 files) → scripts/dev/ - Move protocols/receipts/sample → tests/fixtures/ - Delete stale src/ (duplicate of apps/blockchain-node/src/) - Remove empty home/, dev-utils/, protocols/ directories Documentation updates: - Update docs/6_architecture/8_codebase-structure.md tree and table - Update root README.md tree to reflect new structure
1.1 KiB
1.1 KiB
Testing Scripts
This directory contains various test scripts and utilities for testing the AITBC platform.
Test Scripts
Block Import Tests
- test_block_import.py - Main block import endpoint test
- test_block_import_complete.py - Comprehensive block import test suite
- test_simple_import.py - Simple block import test
- test_tx_import.py - Transaction import test
- test_tx_model.py - Transaction model validation test
- test_minimal.py - Minimal test case
- test_model_validation.py - Model validation test
Payment Tests
- test_payment_integration.py - Payment integration test suite
- test_payment_local.py - Local payment testing
Test Runners
- run_test_suite.py - Main test suite runner
- run_tests.py - Simple test runner
- verify_windsurf_tests.py - Verify Windsurf test configuration
- register_test_clients.py - Register test clients for testing
Usage
Most test scripts can be run directly with Python:
python3 test_block_import.py
Some scripts may require specific environment setup or configuration.