Skip to content

Godot plugin: unit and smoke tests in CI against a fixture feed #283

Closed

Description

@TMHSDigital

Summary

Automated checks for the plugin, so a feed change or a Godot update can't break it without anyone noticing.

Depends on #278. Grows alongside #279, #280 and #282.

Suggested approach

  • Unit tests for the pure scripts (feed parsing, filtering, credits rendering) against a committed fixture feed. Run them with a plain godot --headless --script test runner, or GUT if a framework is preferred.
  • A smoke test: open a sample project with the plugin turned on, --headless --editor --quit, and fail on any SCRIPT ERROR in the output.
  • Contract check: validate the live plugin-feed.json against the fixture's expectations (format, required fields). It can run on a schedule, so a breaking feed change shows up here before users report it.
  • CI matrix: the minimum supported Godot version and the latest stable, on Linux (using a pinned, checksummed Godot download).

Acceptance criteria

  • CI runs unit and smoke tests on every push for both Godot versions
  • Fixture tests cover: unknown keys ignored, higher format, each filter, credit block replacement
  • A scheduled job checks the live feed's contract

Part of #116. Effort: M. audit-key: testing|godot-plugin|ci

Activity

  1. added
    help wanted
    priority: low
    tests
    godot-plugin
    on Nov 10, 2026
  2. TMHSDigital commented on Nov 10, 2026

    @TMHSDigital
    OwnerAuthor

    CI is in place: TMHSDigital/free-game-dev-assets-godot@07f843f. First run green: https://github.com/TMHSDigital/free-game-dev-assets-godot/actions/runs/42739120733

    • Matrix: Godot 4.3-stable (the minimum) and 4.7.2-stable (latest), on Ubuntu. Each zip is checked against the official SHA-512, pinned in the workflow.
    • Runs on push, on PRs, and every Monday, which covers the scheduled check on the live feed.
    • Unit tests: tests/run_tests.gd, 50 checks with no network.
    • Editor smoke test: the job fails unless the log shows dock added and dock removed, or if it shows any SCRIPT ERROR or parse error. Godot can exit 0 after a script error, so every step also reads the log.
    • Live feed check: tests/check_feed_file.gd runs the deployed plugin-feed.json through the plugin's own parser. It fails on a newer format, on dropped entries, on fewer than 100 entries, or on no Godot entries. Current result: 419 entries, 398 work in Godot.

    Still open: the acceptance items for each filter (#280) and for replacing the credits block (#282). Those tests go in with those features.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    godot-pluginhelp wantedpriority: lowtests

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions