Asama 9.2 — Implement built-in test framework (saqut test) #64

Open
opened 2026-05-26 19:53:24 +03:00 by saqut · 0 comments
Owner

Goal: saqut test discovers and runs test functions in the project.

Files to create/modify:

  • src/cli/commands/test.hpp (new)
  • lib/test.sqt

Requirements:

  • Functions annotated with #[test] or named test_* are test functions.
  • saqut test runs all tests, reports pass/fail.
  • assert() and assert_eq() built-in.
  • TAP or JUnit XML output.

Success criteria:

  • saqut test in a project runs test functions.
  • Failures report file and line number.
**Goal:** saqut test discovers and runs test functions in the project. **Files to create/modify:** - src/cli/commands/test.hpp (new) - lib/test.sqt **Requirements:** - Functions annotated with #[test] or named test_* are test functions. - saqut test runs all tests, reports pass/fail. - assert() and assert_eq() built-in. - TAP or JUnit XML output. **Success criteria:** - saqut test in a project runs test functions. - Failures report file and line number.
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: saqut/saqut-compiler#64
No description provided.