Skip to content

Instantly share code, notes, and snippets.

@thekid
Created June 29, 2012 09:15
Show Gist options
  • Select an option

  • Save thekid/3016858 to your computer and use it in GitHub Desktop.

Select an option

Save thekid/3016858 to your computer and use it in GitHub Desktop.
Continuous unittest runner
inotifywait -r -m src/ | while read line ; do echo -e "\033]0;"`unittest src | tee unittest.tmp | tail -n 3 | head -n 1`"\007"; cat unittest.tmp ; rm unittest.tmp ; done
@thekid
Copy link
Author

thekid commented Jun 29, 2012

Monitors directory and executes unittests. Updates console title with summary. INotify-Tools for Windows available via https://github.com/thekid/inotify-win

@thekid
Copy link
Author

thekid commented Jun 29, 2012

Now that xp-framework/xp-framework#171 is merged, the new shell command is easier:

$ inotifywait -r -m src/ | while read line ; do unittest -l xp.unittest.XtermTitleListener - src/ ; done

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