Files
joshua-spacetime fc47257d85 Use SpacetimeDBGuard for SDK test suite (#5340)
# Description of Changes

Use an isolated server process per SDK test instead of a single process
for all of the tests. In addition to reducing the memory footprint of
each test run, this should also allow for more parallelism among the
individual tests.

# API and ABI breaking changes

None

# Expected complexity level and risk

1.5

# Testing

The SDK test suite should continue to work
2026-06-17 00:16:10 +00:00
..
2026-02-07 04:26:45 +00:00
2026-02-07 04:26:45 +00:00
2026-02-07 04:26:45 +00:00
2026-02-07 04:26:45 +00:00

SDK Test Procedure C++

This module tests the procedure functionality in the SpacetimeDB C++ bindings.

Tests Included

  • return_primitive: Procedure returning primitive type (u32)
  • return_struct: Procedure returning custom struct
  • return_enum_a/return_enum_b: Procedures returning enum variants
  • will_panic: Procedure that panics (for error testing)

Tests Excluded (Part 2+)

The following Rust tests are excluded as they require features not yet implemented:

  • HTTP requests (read_my_schema, invalid_request)
  • Transactions (insert_with_tx_commit, insert_with_tx_rollback)
  • Scheduled procedures (schedule_proc, scheduled_proc)

Building

.\compile.bat

This will generate lib.wasm in the build directory.