{"action":"created","issue":{"url":"https://api.github.com/repos/rtfeldman/node-test-runner/issues/56","repository_url":"https://api.github.com/repos/rtfeldman/node-test-runner","labels_url":"https://api.github.com/repos/rtfeldman/node-test-runner/issues/56/labels{/name}","comments_url":"https://api.github.com/repos/rtfeldman/node-test-runner/issues/56/comments","events_url":"https://api.github.com/repos/rtfeldman/node-test-runner/issues/56/events","html_url":"https://github.com/rtfeldman/node-test-runner/issues/56","id":171152586,"number":56,"title":"File watching","user":{"login":"gampleman","id":69144,"avatar_url":"https://avatars.githubusercontent.com/u/69144?v=3","gravatar_id":"","url":"https://api.github.com/users/gampleman","html_url":"https://github.com/gampleman","followers_url":"https://api.github.com/users/gampleman/followers","following_url":"https://api.github.com/users/gampleman/following{/other_user}","gists_url":"https://api.github.com/users/gampleman/gists{/gist_id}","starred_url":"https://api.github.com/users/gampleman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gampleman/subscriptions","organizations_url":"https://api.github.com/users/gampleman/orgs","repos_url":"https://api.github.com/users/gampleman/repos","events_url":"https://api.github.com/users/gampleman/events{/privacy}","received_events_url":"https://api.github.com/users/gampleman/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/rtfeldman/node-test-runner/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-08-15T11:21:27Z","updated_at":"2016-09-13T13:37:14Z","closed_at":"2016-09-13T12:50:18Z","body":"It would be nice to support interactive testing where the runner watches loaded files for changes and reruns the tests when the files change. I think this would be particularly nice if it was optimized for speed so that once you hit save in  the editor you could see your tests finished by the time you switch to the console. To achieve this it would make sense to build these optimizations:\r\n\r\n1. Work out the minimal subset of tests that need to run on a change. Given the following project:\r\n\r\n   Main.elm imports A.elm and B.elm. B.elm imports C.elm. Each of these has a corresponding test file that only imports the file it tests. When I make a change to B.elm, I will only need to run tests from BTests.elm and MainTests.elm, since only these can have possibly changed.\r\n\r\n   For this to work you would need to get the import tree from the compiler, which I don't know if it supported. When the dependency tree changes, it would make sense to re-run the entire suite.\r\n\r\n2. Only run perhaps 10 fuzz tests rather than a hundred. Since you will run tests on every save, they should get decent coverage. You could perhaps run 100 on the first run.\r\n\r\nOf course #51 would fit very well into this proposal as well."},"comment":{"url":"https://api.github.com/repos/rtfeldman/node-test-runner/issues/comments/246683293","html_url":"https://github.com/rtfeldman/node-test-runner/issues/56#issuecomment-246683293","issue_url":"https://api.github.com/repos/rtfeldman/node-test-runner/issues/56","id":246683293,"user":{"login":"gampleman","id":69144,"avatar_url":"https://avatars.githubusercontent.com/u/69144?v=3","gravatar_id":"","url":"https://api.github.com/users/gampleman","html_url":"https://github.com/gampleman","followers_url":"https://api.github.com/users/gampleman/followers","following_url":"https://api.github.com/users/gampleman/following{/other_user}","gists_url":"https://api.github.com/users/gampleman/gists{/gist_id}","starred_url":"https://api.github.com/users/gampleman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gampleman/subscriptions","organizations_url":"https://api.github.com/users/gampleman/orgs","repos_url":"https://api.github.com/users/gampleman/repos","events_url":"https://api.github.com/users/gampleman/events{/privacy}","received_events_url":"https://api.github.com/users/gampleman/received_events","type":"User","site_admin":false},"created_at":"2016-09-13T13:37:14Z","updated_at":"2016-09-13T13:37:14Z","body":"#74 only does the bare minimum, none of the actual interesting features proposed here. So I would like this to be reopened (I can edit the title to introduce some clarity in what is being requested).\r\n\r\n/cc @rtfeldman ."}}
{"actor":{"display_login":"gampleman"}}