mutaml icon indicating copy to clipboard operation
mutaml copied to clipboard

`mutaml-runner` should set an environment variable to indicate which files are mutated

Open raphael-proust opened this issue 3 years ago • 1 comments

To avoid running all the tests for all the mutations, mutaml-runner could set an environment variable MUTAML_MUTATED_FILES containing a list of files that have mutations active. This would allow to condition a test so that it only runs if the code that it tests is part of the files that are mutated.

raphael-proust avatar Dec 19 '22 13:12 raphael-proust

This is a clever suggestion to delegate to the tests which ones to run or not - and using an environment variable to communicate that to the test child process.

On the other hand, I suppose dune also knows all the dependencies since it is using very similar logic to avoid recompiling and rerunning tests needlessly. I thus wonder whether it is possible to hook into and reuse... :thinking:

jmid avatar Jan 03 '23 22:01 jmid