Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.