sbt_test_only () {
[[ $# -eq 0 ]] && return 1
local classes=$(git log --name-only --oneline $1..HEAD|grep "^test"|sort|uniq|while read line; do echo "$(head -1 $line|awk '$0=$2').$(cat $line|grep "object"|awk '$0=$2')"; done|xargs)
echo "sbt \"test-only $classes\""
}
Last active
February 17, 2016 05:45
-
-
Save jmatsu/d1d7374571e91a84b43f to your computer and use it in GitHub Desktop.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment