disqus/disqus-arcanist — pull request #4 by gabalafou (2012-11-02 18:40:11+00:00)
Title: If Javascript (.js) files have been modified, run Javascript tests.

Right now this runs two commands sequentially if it detects that a .js file has been modified:

1. runtests.py --with-quickunit --with-xunit ...
2. runtests.py --js --with-xunit ...

For the Javascript tests, it puts the results in test_results/hiro.xml.

Possible improvement for the future: only run the Javascript tests if the js file modified actually has test coverage. Not sure how to do this. I thought about putting a special file in any directory (kind of like .gitignore) that says: if any js files are touched in this directory (or subdirectories of this directory), run Javascript tests. But I think this is good for now.