E2E Compilation Tests
Overview
The E2E test suite compiles every example contract through the full pipeline and validates the output:
bash
cargo test --test e2e_compilation_testsThis workspace currently has 80 E2E test functions. The exact count should be treated as source-controlled test inventory rather than an API promise; check it with:
bash
rg -n "^\s*#\[test\]" tests/e2e_compilation_tests.rs | wc -lThe suite:
- Parse each Solidity source file
- Run it through the full compilation pipeline
- Verify the NEF is valid (magic bytes, checksum)
- Verify the manifest is valid JSON with correct ABI structure
- Check that method signatures match the Solidity source
To run with parallel threads for faster execution:
bash
cargo test --test e2e_compilation_tests -- --test-threads=4