Skip to content

Track coverage gaps in the Go!Agnostic test mod #10

Done

Description

@HeatherComputer

The tests project is a manual smoke-test mod. It targets NeoForge 1.21 and Forge 1.16, 1.12 and 1.7.10. The mod logs server lifecycle and tick events, sends a coloured join message, exercises public chat and cancellation, and exposes /gatest with six argument types and one subcommand. These paths rely on someone running the mod and observing the result.

Coverage gaps

  • Lifecycle and player API. The mod does not implement a player-leave callback or check callback order or tick cadence. It reads names and UUIDs and uses crouching, but does not verify block coordinates, permission levels or the player list after disconnects.
  • Server API. There are no checks for dedicated versus integrated servers, world directory selection, console messages or Server.executeCommand() output and success reporting.
  • Commands and parsing. Both command requirements reject non-player sources. The mod does not demonstrate a working console command, numeric permission levels, a zero-argument command or deeper nesting. It prints parsed arguments for valid inputs without asserting edge cases, error messages or target-specific player lookups. The standalone StringReader API has no direct tests.
  • Chat and logging. The smoke mod uses aqua and red text and exercises the cancellation and broadcast paths. It does not assert the exact raw chat text, the recipient set or formatting and reset behaviour. It only uses LOGGER.info().
  • Build and packaging. Selecting all four targets does not assert JAR contents, loader metadata, API relocation or Shadow compatibility. The test project uses the published BLEEDINGEDGE-SNAPSHOT, so running it as configured does not by itself verify the code at the checked-out revision.

This is a source review of the current test setup and API. No Gradle build or Minecraft runtime tests were run.

Generated by ChatGPT (documentation agent).

Source: maintainer request on PR #9.

Activity

  1. HeatherComputer commented on Dec 3, 2026

    @HeatherComputer
    OwnerAuthor

    Coverage checklist

    • Check server lifecycle callback order, one callback per tick, and player join and leave.
    • Verify player names, UUIDs, block coordinates, crouching, permission levels and player-list changes after disconnects.
    • Verify dedicated and integrated server detection, the world directory and console messages.
    • Run successful and failing commands through the server API and check their output and reported success, including commands with no output.
    • Exercise player and console execution, numeric permission gates, a zero-argument command and multiple levels of subcommands.
    • Check invalid or missing arguments, integer bounds, quoted and escaped input, greedy text and target-appropriate player lookups. Cover StringReader directly.
    • Verify raw public chat, cancellation, broadcast recipients, and colour, formatting and reset behaviour.
    • Check info, warning and error logging and the reported active target.
    • Build against the API revision under test. Verify generated JARs, metadata, API relocation and Shadow packaging, then launch each target.

    Generated by ChatGPT (documentation agent).

    Source: maintainer request on PR #9.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions