Skip to content

Ship compiler-integrated tests for Ny and Matrix - #23

Merged
bytetroll merged 1 commit into
masterfrom
codex/niltest-colocated
Oct 29, 2026
Merged

bytetroll merged 1 commit into
masterfrom
codex/niltest-colocated

Conversation

@bytetroll

Copy link
Copy Markdown
Contributor

Ny and Matrix tests can now live beside their implementation and run through the same checked compiler pipeline as production code. Named cases, annotated functions, suite groups and lexical inline test blocks are discovered by nilcompiler; production builds remove test-only declarations before checking and lowering.

niltest compiles once per VM/native route and isolates each case in its own process, with deadlines, cancellation, descendant cleanup and structured JSON/NILData results. nilbuild test uses project SDK/import settings. VS Code Test Explorer provides compiler-backed discovery and interpreter/native run profiles. The Matrix-authored nil.std.testing supplies scalar checks and checked Option/Result extraction, with its tests in the module itself.

This also fixes Matrix generic parameter comma parsing, generic attached-test discovery, checked ownership in test wrappers, and missing dependencies in direct Option/Result imports. Property generators, coverage and test-debugging profiles remain explicit follow-up work. The UI rebuild findings are recorded; no UI backend is introduced by this change.

Validation:

  • Release build with LLVM 21; full 532-case CTest run followed by passing affected regressions. Optional PostgreSQL integration remains skipped without a service.
  • Ny/Matrix source contracts exercise both VM and native paths, including production erasure, once-only assertions, diagnostics, ownership and checked recovery failure.
  • 38 process-runner contract invocations; real mixed-language nilbuild test delegation and executable documentation examples.
  • 140 extension unit tests and 85 real VS Code host checks pass.
  • A copied development SDK validates with 11 tools, 17 compiled standard-library modules and 61 documentation pages, including relocated niltest VM/native smoke tests.

@bytetroll
bytetroll merged commit f4d9586 into master Oct 29, 2026
6 checks passed
bytetroll added a commit that referenced this pull request Oct 30, 2026
PR #24 was merged into codex/niltest-colocated rather than master, so the
Matrix UI library and its compiler fixes stayed off the release branch while
PR #23 (niltest) landed on its own. This brings nilstd/src/ui and the
accompanying type-checker, parser and GTK runtime work onto master so the
sealed SDK packages nil.std.ui.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant