Merge: Some nitunit love
authorJean Privat <jean@pryen.org>
Sat, 14 May 2016 15:56:13 +0000 (11:56 -0400)
committerJean Privat <jean@pryen.org>
Sat, 14 May 2016 15:56:13 +0000 (11:56 -0400)
commit17543d4946687dee470b1d2f813e29b16a87a90c
tree0bfaa14c0dc831e522b6a2cdc30feb81b63ce312
parenta0ab4b548a11c91cead2b95a2b88f96aa27757a6
parentd0fe463733928b6f8b4fd2d09feb8cc757831a4a
Merge: Some nitunit love

Two small changes

* nitunit works on directories. e.g. `nitunit lib/ contrib/`
* static errors are shown with precise location.

~~~
test_doc3.nit:17,9--15: Syntax Error: unexpected identifier 'garbage'. To suppress this message, enclose the block with a fence tagged `nitish` or `raw` (see `man nitdoc`). (invalid-block)
#      *garbage*
        ^
~~~

runtime errors are a more complex beast to track. Two solutions:

* pragma to inject line informations in the generated test program. This need to find a syntax for line pragmas and teach the parser to use them
* post-error management that parse error messages and substitute the locations from the the generated program with the original locations in the real source. Doable but more code is needed.

Pull-Request: #2075
Reviewed-by: Alexis Laferrière <alexis.laf@xymus.net>
src/loader.nit