Skip to content

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

Description

@raphael-proust

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.

Activity

  1. jmid commented on Jan 3, 2023

    @jmid
    Owner

    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... 🤔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions