GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com โ€” ๐Ÿงช TESTS: Test update, ensure the bare `all-contributors` command shows a prompt (to support e2e test) ยท Issue #642 ยท all-contributors/cli

๐Ÿงช TESTS: Test update, ensure the bare all-contributors command shows a prompt (to support e2e test) #642

New issue
Copy link
New issue
Copy link
Closed
#643
Closed
๐Ÿงช TESTS: Test update, ensure the bare all-contributors command shows a prompt (to support e2e test)#642
#643
Copy link
Assignees
lwasser
Labels
type: infrastructureRepository tooling, build and release setuptype: testsChanges to tests

Description

@lwasser
lwasser
opened on Nov 11, 2026
Issue body actions

Tooling Report Checklist

  • I have pulled the latest main branch of the repository.
  • I have searched for related issues and found none that matched my issue.

Overview

When you run all-contributors with no command, it shows the
"What do you want to do?" prompt and waits for input. Our end-to-end
helper runCli() in test/e2e/run-cli.js has no timeout, so a test
that runs the bare command hangs.

Confirmed this by running the CLI the same way runCli() does. A
5-second timeout killed the process with killed: true and
signal: 'SIGTERM'.

note (i used a llm to figure out how to "See this" in the console - see below.

node -e "require('child_process').execFile(process.execPath, ['src/cli.js'], { timeout: 3000 }, (e, out) => console.log({ killed: e?.killed, signal: e?.signal, out }))"
{
  killed: true,
  signal: 'SIGTERM',
  out: '? What do you want to do?\n' +
    'โฏ Add new contributor or edit contribution type\n' +
    '  Re-generate the contributors list\n' +
    '  Compare contributors from the repository with the credited ones\n' +
    '\n' +
    'โ†‘โ†“ navigate โ€ข โŽ select\x1B[?25l\x1B[23G' 
}

Tasks

  • Add a timeout option to runCli() (in the e2e suite only.
  • Return timedOut from error.killed so tests can check it.
  • Add an end-to-end test in test/e2e/cli.test.js: run the bare
    command with a short timeout, and expect timedOut to be true
    and stdout to show the prompt.

Additional Info

I will work on this!!

Reacted by michael faith

Activity

  1. lwasser
    added
    type: infrastructureRepository tooling, build and release setup
    type: testsChanges to tests
    on Nov 11, 2026
  2. lwasser
    self-assigned this
    on Nov 11, 2026
  3. lwasser
    changed the title [-]๐Ÿ›  Tooling: Test that the bare `all-contributors` command shows a prompt[/-] [+]๐Ÿ›  Tooling: Test update, ensure the bare `all-contributors` command shows a prompt (to support e2e test)[/+] on Nov 11, 2026
  4. lwasser
    changed the title [-]๐Ÿ›  Tooling: Test update, ensure the bare `all-contributors` command shows a prompt (to support e2e test)[/-] [+]๐Ÿงช TESTS: Test update, ensure the bare `all-contributors` command shows a prompt (to support e2e test)[/+] on Nov 11, 2026
  5. michaelfaith
    closed this as completedin #643on Nov 12, 2026
  6. lwasser
    added a commit that references this issue on Nov 21, 2026

    test: add test for bare command all-contributors (all-contributors#643)

    This issue will close once commit 6db0431 is merged into the 'main' branch.
    6db0431
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @lwasser
    lwasser

Labels

type: infrastructureRepository tooling, build and release setuptype: testsChanges to tests

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 โ€” GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800ร—600. No cookies required.