Merge: Introduce `test_frontend`
authorJean Privat <jean@pryen.org>
Mon, 15 Jul 2019 15:08:09 +0000 (11:08 -0400)
committerJean Privat <jean@pryen.org>
Mon, 15 Jul 2019 15:08:09 +0000 (11:08 -0400)
Sometimes we need to test things related to a model and it's not easy to do this with NitUnit since creating
a model by hand is tedious.

With the `TestModel` abstract suite it's easier:

```nit
module my_test is test

import test_frontend

class MyTest
   super TestModel
   test

   redef var test_src = "path/to/files"

   fun my_test is test do
       assert test_model.mmodules.length == 1
   end
end
```

Pull-Request: #2769
Reviewed-by: Jean Privat <jean@pryen.org>

1  2 
src/doc/templates/tests/test_json_model.sav/test_modules_to_full_json.res