Smarter compilation for test-only

18 views
Skip to first unread message

Robin Green

unread,
Sep 18, 2012, 7:41:58 AM9/18/12
to simple-b...@googlegroups.com
If you have a situation where you are refactoring your code, and 99 out of 100 test source files currently don't compile, but you'd like to run the 1 that does, using sbt 0.11.3 you have to go through and comment out all the failing tests, because test-only still tries to compile them, even though they're not required to run the one test you want to run.

This is an exaggerated example - it wasn't 99 files that were failing to compile! But smarter compilation for this case would be nice.

Mark Harrah

unread,
Sep 19, 2012, 12:41:57 PM9/19/12
to simple-b...@googlegroups.com
You could perhaps get away with less work by filtering `sources`, but yes, something to make this easy or some other infrastructure to restrict compilation could be nice. I'm happy to point anyone in the right direction who wants to work on this. (Filing an enhancement seems appropriate in any case.)

-Mark

> --
> You received this message because you are subscribed to the Google Groups "simple-build-tool" group.
> To view this discussion on the web visit https://groups.google.com/d/msg/simple-build-tool/-/9LT8L9akZRsJ.
> To post to this group, send email to simple-b...@googlegroups.com.
> To unsubscribe from this group, send email to simple-build-t...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/simple-build-tool?hl=en.
>

nafg

unread,
Sep 23, 2012, 9:44:22 PM9/23/12
to simple-b...@googlegroups.com
+1
Reply all
Reply to author
Forward
0 new messages