Skip to content

Instantly share code, notes, and snippets.

@lfzawacki
Created October 31, 2013 20:49
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lfzawacki/7256922 to your computer and use it in GitHub Desktop.
Save lfzawacki/7256922 to your computer and use it in GitHub Desktop.
Speeding up your BBB tests
#!/bin/sh
while inotifywait -e modify $1; do
gradle --daemon test
done

Speeding up and pimping your Gradle tests

You can follow these steps to make your life easier and faster when using gradle to test your projects, I'm using this to hack away in BigBlueButton

  • Setup gradle build to use the daemon, like explained here: http://www.timroes.de/2013/09/12/speed-up-gradle/

  • Install the package inotify-tools

  • Create the auto-run.sh script on your project folder.

  • Run the auto-run.sh script included in this gist like this:

    $ sh auto-run.sh "srcfolder/ -r"

  • "srcfolder/" should be the path to your code's folder

  • Tests should now running automatically (and quicly!) with each code change

Auto-load

You can user Auto-reload for firefox and configure it to track build/reports/tests/index.html and keep a Firefox window permanently open with the test results.

You're done :)

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