Have we tried disabling -unittest for modules that aren't on the compiler's command line yet (or, in case of -i, not excluded)?
Not that I know of, thats a great idea!
Maybe this hack could be developed further into a more generic "compiler server" idea.
Wasn't that Robert's Masters thesis (Dconf 2013(?) presentation)? ;)