Skip to content

Add e2e completion testing #2917

Description

@AndreasBackx

Currently it's a bit hard to know whether our completions actually work end-to-end. Whether when it's all installed, that we actually get the completions we're expecting in our API. It would be nice if we added some way that we could test this. This would've been helpful in #2846.

We might be able to use scrut to create a test for it. My team created this tool for our work and it basically allows you to easily create E2E tests. If you can make autocompletions show by running a command on the commandline, you can very easily make a scrut test out of that.

Activity

  1. Rowlando13 commented on Jul 8, 2025

    @Rowlando13
    Member

    Ideally the solution would also easily support testing locally. But CI is would be the minimum.

  2. davidism commented on Jul 8, 2025

    @davidism
    Member

    The solution must support testing locally and in CI. Having differences between the two is not a good idea.

  3. Rowlando13 commented on Jul 9, 2025

    @Rowlando13
    Member

    @davidism I agree. I just don't know that that exists so I was hesitant to demand it as an initial requirement because we don't have anything. Do you have any ideas for direction.

  4. davidism commented on Jul 9, 2025

    @davidism
    Member
  5. added
    testsClick's own test suite and CI workflows
    and removed on Aug 8, 2026
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

    shell completionShell tab completiontestsClick's own test suite and CI workflows

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions