Phase 1 - Test Writing (8 parallel agents): - synord: Added 133 unit tests for node, config, services - synor-rpc: Expanded to 207 tests for API endpoints - synor-bridge: Added 144 tests for transfer lifecycle - synor-zk: Added 279 tests for circuits, proofs, state - synor-mining: Added 147 tests for kHeavyHash, miner - synor-types: Added 146 tests for hash, amount, address - cross-crate: Created 75 integration tests - byzantine: Created 40+ fault scenario tests Key additions: - tests/cross_crate_integration.rs (new) - apps/synord/tests/byzantine_fault_tests.rs (new) - crates/synor-storage/src/cf.rs (new) - src/lib.rs for workspace integration tests Fixes during testing: - synor-compute: Added Default impl for GpuVariant - synor-bridge: Fixed replay protection in process_lock_event - synor-storage: Added cf module and database exports All 1,357 tests pass with 0 failures.
27 lines
578 B
Text
27 lines
578 B
Text
# Synor Test Dockerfile
|
|
# Used for running tests in Docker environment
|
|
|
|
FROM rust:1.85-bookworm
|
|
|
|
# Install build dependencies
|
|
RUN apt-get update && apt-get install -y \
|
|
cmake \
|
|
clang \
|
|
libclang-dev \
|
|
pkg-config \
|
|
libssl-dev \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
# Create app directory
|
|
WORKDIR /app
|
|
|
|
# Copy project files
|
|
COPY Cargo.toml Cargo.lock ./
|
|
COPY src/ src/
|
|
COPY crates/ crates/
|
|
COPY apps/ apps/
|
|
COPY contracts/ contracts/
|
|
COPY sdk/ sdk/
|
|
|
|
# Default command runs synor-bridge tests
|
|
CMD ["cargo", "test", "-p", "synor-bridge", "--", "--test-threads=4"]
|