Reload coverage data anytime after tests run, or whenever a new coverage report is generated on disk.
Impetus
I have a continuous test runner external to Neovim. I have to manually reload coverage. It would be nice if this plugin could watch the report directory, and reload whenever it detected a change.
Implementation
See new_fs_event(). This would require a change to all the language implementations to supply a directory or file to watch for changes. I would image that it should wait a second or two after detecting a change as a report might not be fully generated after the first file change is detected. Then it would reload the coverage report.
Reload coverage data anytime after tests run, or whenever a new coverage report is generated on disk.
Impetus
I have a continuous test runner external to Neovim. I have to manually reload coverage. It would be nice if this plugin could watch the report directory, and reload whenever it detected a change.
Implementation
See new_fs_event(). This would require a change to all the language implementations to supply a directory or file to watch for changes. I would image that it should wait a second or two after detecting a change as a report might not be fully generated after the first file change is detected. Then it would reload the coverage report.