mirror of
https://github.com/clockworklabs/SpacetimeDB.git
synced 2026-06-27 08:18:48 -04:00
47a7794111
# Description of Changes HTTP handlers already have smoketest coverage, but in order to add to `module-test`s all languages had to have parity as `module-test` has a check to ensure schemas match. The existing integration tests using `module-test` load SpacetimeDB in memory, expanding these tests would require significant and potentially ugly work to handle hosting for HTTP handlers. Instead, this PR adds compile-only for each `module-test` with a matching handler + route. # API and ABI breaking changes N/A # Expected complexity level and risk 1 - tiny addition to `module-test` for all languages # Testing - [x] `cargo test -p spacetimedb-schema module_test` - [x] `cargo test -p spacetimedb-testing`
module-test Rust test
Called as part of our integration tests to ensure the system is working as expected.
Note: Also mirrored as a C# version at
modules/module-test-cs, so must be kept in sync.
How to Run
Execute individual tests with module-test for Rust and module-test-cs for C#
at standalone_integration_test, or call
# Will run both Rust/C# module
cargo test -p spacetimedb-testing
# Only Rust
cargo test -p spacetimedb-testing rust
# Only C#
cargo test -p spacetimedb-testing csharp