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)
commit5e0aa41cd8e86ee6491c5093087e20c93e8986eb
treec411957ac3a84c47492af05e2b75f29385be2b85
parent3a3fae4fb40c3b54edb0e47f400fdced4e916a87
parenta5fd1ba0661c78526bcb90acd92c2b268d17acdd
Merge: Introduce `test_frontend`

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>
src/doc/templates/tests/test_json_model.sav/test_modules_to_full_json.res