Merge: Tools works with groups
authorJean Privat <jean@pryen.org>
Wed, 7 Jan 2015 02:05:51 +0000 (21:05 -0500)
committerJean Privat <jean@pryen.org>
Wed, 7 Jan 2015 02:05:51 +0000 (21:05 -0500)
commit20d9b735181ebac74be5a95905077bc2079934b7
tree90cef887f77801f4c5a0d0dc6764c0debaf73037
parent0250239e756fc7bfcc437031f943fedfe370664d
parent985cfca6c4581523bbe04f8314f6ddc2cf9b674e
Merge: Tools works with groups

Make Nit tools more POLA when projects (or groups) are given on the command line.

eg. people using `nitunit ../lib/mylib` may expect that all the unit tests of the lib are executed, not just those from the default module `../lib/mylib/mylib.nit` (that often is basically an empty bottom module)

So this PR introduces `parse_full` in the loader that loads and returns all the modules of given groups, then adapt most tools to use `parse_full`.

No more crazy shell pipelines with `nitls` or `find` to use nitunit, nitpick and other on all the modules of your libs or programs.

Pull-Request: #1070
Reviewed-by: Alexis Laferrière <alexis.laf@xymus.net>
Reviewed-by: Romain Chanoir <chanoir.romain@courrier.uqam.ca>