Skip to content

fn-based tool tests manually construct commands #80

@barrettruth

Description

@barrettruth

Problem

Four tools use custom fn in their configs, so their tests can't use the
run_fmt/run_lint helpers and must manually invoke the tool via
vim.system. This means the tests don't exercise the actual config definition
and could drift from what guard.nvim runs in practice.

Affected tools: prettierd, cpplint, checkmake, zsh

Possible solution

Either extend the test helpers to support fn-based configs (e.g. by calling
the fn directly with a mock buffer), or accept these as the only exceptions
to the "always use run_fmt/run_lint" rule and document them as such.

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