I’m wondering if there is any solution to let Scala tests run automatically upon change of test class itself or class under the test (just to test automatically pairs Class <—> ClassTest) would be a good start.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
sbt can help you with this. After you setup project, just run
~means continuous execution. So that sbt will watch file system changes and when changes are detected it recompiles changed classes and tests your code.~testQuickcan be even more suitable for you, because it runs only tests, that were changed (including test class and all it’s transitive dependencies). You can read more about this here:http://code.google.com/p/simple-build-tool/wiki/TriggeredExecution
http://php.jglobal.com/blog/?p=363
By the way,
~also works with other tasks like~run.