Sbt can re-run tasks when some of watched files have changed (~task). How to find out which files have changed?
You can add this to your build.sbt to see what files are watched:
watchSources ~= { files =>
println(files.mkString("\n")+"\n\n\n")
files//here you can add files or filter out
}
It might help you to test specific Test classes: ins sbt (interactice mode):
~test-only full.path.test.ClassName
To track file changes in general you can use Java 7 WatchService or Apache VFS for Java 6.
Source: WatchService for Java 6
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With