Skip to content

Watch mode #1020

Closed
Closed
@jason0x43

Description

@jason0x43

The goal of this issue is to suggest how a "watch" mode would behave for Intern.

"Watch" mode is where Intern is started and stays running, watching for changes to files. When it sees changes, it will re-execute tests. In a naive implementation, Intern could just call intern.run() every time something changed. A more advanced implementation would only re-run tests that had changed, or tests that were related to changed files.

Some questions to answer:

  • What would typical usage patterns be?
  • Would watch mode work for functional tests as well as unit tests?
  • How would it work in different situations? (e.g., bare JS vs compiled flows)
  • What changes would Intern need to support a basic watch mode?
  • What changes would Intern need to be able to run only changed tests?
  • What changes would Intern need to be able to determine which tests relate to which application files?

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions