Skip to content

Lab: emmylua test reports which of the branch's new tests ran #38

Open

Description

@mareklangiewicz

Lab issue (neospector lua/myemmylab*.lua). Part of #17.

Problem

AGENTS.md says "After a run, grep the log for one of the branch's new test names." But gndx emmylua test collapses cargo's output to one line (test: 1911 test(s) of emmylua_code_analysis passed in …), so no test name ever appears in the log. #37's full-suite log had 3 lines and none named test_union_with_bare_question_is_optional. The only proof was a second run with --filter=<name> and reading "1 test(s)".

An agent that follows the rule finds nothing, then either reruns (wasted time) or takes "no FAILED" as proof the test ran (the shared-target trap AGENTS.md warns about).

Want

  • After a run, list the #[test] names the branch adds or changes (git diff <merge-base>), each marked ran / did not run (from libtest's --list, or the unfolded output).
  • Exit non-zero when one of them did not run.
  • Then AGENTS.md's "grep the log" sentence becomes "the lab reports which of the branch's new tests ran".

Related: #3 (--full output mode).

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

    needs-triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions