Game code tests #59

Open
UnflavoredMeson/Primal_Plus_Plus
opened 2026-11-24 20:16:06 +00:00 by UnflavoredMeson · 0 comments
Owner

Why

Game projects should test their own behaviors and actors the way the engine tests itself.

Decided

  • Templates include a test target (doctest) that links the engine and the game library and runs frames headless.

Read first

  • UnflavoredMeson/Primal#62.

Steps

  • 1. Add a headless frame helper to the engine.
  • 2. Add the test target to the templates.

Done when

  • A new project's sample test runs from the build service on both OSes.

Claude can help with

  • The helper's API.

Learn

  • What "headless" has to stub (window, renderer) and what it can't.
## Why Game projects should test their own behaviors and actors the way the engine tests itself. ## Decided - Templates include a test target (doctest) that links the engine and the game library and runs frames headless. ## Read first - `UnflavoredMeson/Primal#62`. ## Steps - [ ] 1. Add a headless frame helper to the engine. - [ ] 2. Add the test target to the templates. ## Done when - [ ] A new project's sample test runs from the build service on both OSes. ## Claude can help with - The helper's API. ## Learn - What "headless" has to stub (window, renderer) and what it can't.
Sign in to join this conversation.
No assignees
No project
No milestone
Depends on
Notifications
1 participant
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
UnflavoredMeson/Primal_Plus_Plus#59
No description provided.