arion icon indicating copy to clipboard operation
arion copied to clipboard

Adding a source file as an import in a test file

Open karun012 opened this issue 10 years ago • 4 comments

When I am in a session where a source and test file are not associated, and I add a new import to a test file, it doesn't get associated.

karun012 avatar Apr 02 '15 16:04 karun012

Related to #5

karun012 avatar Apr 02 '15 16:04 karun012

i think the model to use here is to keep the associated files in an IORef, and when an Added event comes in, recompute them. This should also be done when a file is removed, else we'll keep trying to run deleted specs.

mwotton avatar Apr 03 '15 00:04 mwotton

Still haven't found the time to pick this up.

karun012 avatar Apr 06 '15 18:04 karun012

Trying to come up with things that can happen so that we can figure out how to handle each case.

Source file changes

  • New imports can be added
  • Imports can be deleted
  • Module name can be changed
  • File can be deleted

Test file changes

  • New imports can be added
  • Imports can be deleted
  • File can be deleted

Am I missing anything?

karun012 avatar Apr 09 '15 23:04 karun012