Closed
Description
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?