@@ -299,26 +299,36 @@ clean-all: clean
299299# TEST & QUALITY
300300# ═══════════════════════════════════════════════════════════════════════════════
301301
302- # Run all tests
302+ # Run all tests — ReScript parser tests + Zig FFI tests
303303test * args :
304- @ echo " Running tests..."
305- # TODO: Replace with your test command
306- # Examples:
307- # cargo test {{args}}
308- # mix test {{args}}
309- # zig build test {{args}}
310- # deno test {{args}}
311- @ echo " Tests passed!"
304+ @ echo " Running ReScript parser tests..."
305+ rescript build
306+ node tests / parser / ParserTests.mjs
307+ @ echo " "
308+ @ echo " Running Zig FFI tests..."
309+ cd ffi / zig && zig build test
310+ @ echo " "
311+ @ echo " All tests passed!"
312312
313313# Run tests with verbose output
314314test-verbose :
315- @ echo " Running tests (verbose)..."
316- # TODO: Replace with verbose test command
315+ @ echo " Running all tests (verbose)..."
316+ rescript build
317+ node tests/ parser/ ParserTests.mjs
318+ cd ffi/ zig && zig build test
319+ node tests/ smoke/ e2e-smoke.mjs
317320
318- # Smoke test
321+ # End-to-end smoke test — parse example, verify ABI correspondence
319322test-smoke :
320- @ echo " Smoke test..."
321- # TODO: Add basic sanity checks
323+ @ echo " Running E2E smoke test..."
324+ rescript build
325+ node tests/ smoke/ e2e-smoke.mjs
326+
327+ # Type-check Idris2 ABI modules (formal proofs)
328+ check-abi :
329+ @ echo " Type-checking Idris2 ABI modules..."
330+ cd src/ abi && idris2 --build typed-wasm.ipkg
331+ @ echo " All 9 ABI modules type-check successfully."
322332
323333# Run all quality checks
324334quality : fmt-check lint test
0 commit comments