diff options
Diffstat (limited to 'tests/sync.rs')
| -rw-r--r-- | tests/sync.rs | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/tests/sync.rs b/tests/sync.rs new file mode 100644 index 0000000..cedb876 --- /dev/null +++ b/tests/sync.rs | |||
| @@ -0,0 +1,29 @@ | |||
| 1 | //! Proactive Sync Integration Tests | ||
| 2 | //! | ||
| 3 | //! This test file organizes tests for ngit-grasp's proactive sync functionality. | ||
| 4 | //! Tests are grouped into submodules by sync scenario: | ||
| 5 | //! | ||
| 6 | //! - `bootstrap` - Tests for sync from pre-configured bootstrap relay | ||
| 7 | //! - `discovery` - Tests for relay discovery from announcement events | ||
| 8 | //! | ||
| 9 | //! # Running Tests | ||
| 10 | //! | ||
| 11 | //! ```bash | ||
| 12 | //! # Run all sync tests | ||
| 13 | //! cargo test --test sync | ||
| 14 | //! | ||
| 15 | //! # Run with output | ||
| 16 | //! cargo test --test sync -- --nocapture | ||
| 17 | //! | ||
| 18 | //! # Run specific test | ||
| 19 | //! cargo test --test sync test_bootstrap_syncs -- --nocapture | ||
| 20 | //! ``` | ||
| 21 | |||
| 22 | // Include the common test utilities | ||
| 23 | mod common; | ||
| 24 | |||
| 25 | // Include sync test submodules (located in tests/sync/) | ||
| 26 | mod sync { | ||
| 27 | pub mod bootstrap; | ||
| 28 | pub mod discovery; | ||
| 29 | } \ No newline at end of file | ||