Skip to content

timeout support for moon test #1290

Description

@tonyfettes

Supports timeout when running moon test.

Motivation

Some test will hang due to bugs in library, dead loops, and potentially bugs in moon. Adding timeout for moon test can help user to better spot the issue.

Detailed Description

  1. Support --timeout <timeout> in command line arguments in moon test, specifying the timeout applied to this run of moon test.
  2. Support "test-timeout" configuration in moon.pkg.json, for CI usage.
  3. The <timeout> supports human-readable notation of time duration, like 10s, 1m, 1h.

Related Issues

Checklist

  • I have added all necessary details to make it easy for the maintainers to understand my request.

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