From: Jean Privat Date: Mon, 15 Jul 2019 15:08:09 +0000 (-0400) Subject: Merge: Introduce `test_frontend` X-Git-Url: http://nitlanguage.org?hp=-c 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 --- 5e0aa41cd8e86ee6491c5093087e20c93e8986eb diff --combined src/doc/templates/tests/test_json_model.sav/test_modules_to_full_json.res index 941833d,28ab45f..ee79241 --- a/src/doc/templates/tests/test_json_model.sav/test_modules_to_full_json.res +++ b/src/doc/templates/tests/test_json_model.sav/test_modules_to_full_json.res @@@ -36,7 -36,7 +36,7 @@@ "class_name": "MModule", "full_name": "test_prog::game", "visibility": "public", - "html_synopsis": "A game abstraction for RPG.", + "html_synopsis": "A game abstraction for RPG.", "modifiers": ["module"] } { @@@ -52,7 -52,7 +52,7 @@@ "class_name": "MModule", "full_name": "test_prog::platform", "visibility": "public", - "html_synopsis": "Declares base types allowed on the platform.", + "html_synopsis": "Declares base types allowed on the platform.", "modifiers": ["module"] } { @@@ -68,7 -68,7 +68,7 @@@ "class_name": "MModule", "full_name": "test_prog::careers", "visibility": "public", - "html_synopsis": "Careers of the game.", + "html_synopsis": "Careers of the game.", "modifiers": ["module"] } { @@@ -84,7 -84,7 +84,7 @@@ "class_name": "MModule", "full_name": "test_prog::character", "visibility": "public", - "html_synopsis": "Characters are playable entity in the world.", + "html_synopsis": "Characters are playable entity in the world.", "modifiers": ["module"] } { @@@ -100,7 -100,7 +100,7 @@@ "class_name": "MModule", "full_name": "test_prog::combat", "visibility": "public", - "html_synopsis": "COmbat interactions between characters.", + "html_synopsis": "COmbat interactions between characters.", "modifiers": ["module"] } { @@@ -116,7 -116,7 +116,7 @@@ "class_name": "MModule", "full_name": "test_prog::races", "visibility": "public", - "html_synopsis": "Races of the game.", + "html_synopsis": "Races of the game.", "modifiers": ["module"] } { @@@ -132,7 -132,7 +132,7 @@@ "class_name": "MModule", "full_name": "test_prog::rpg", "visibility": "public", - "html_synopsis": "A worlg RPG abstraction.", + "html_synopsis": "A worlg RPG abstraction.", "modifiers": ["module"] } { @@@ -148,7 -148,7 +148,7 @@@ "class_name": "MModule", "full_name": "test_prog::test_prog", "visibility": "public", - "html_synopsis": "A test program with a fake model to check model tools.", + "html_synopsis": "A test program with a fake model to check model tools.", "modifiers": ["module"] } { @@@ -174,3 -174,13 +174,13 @@@ "visibility": "public", "modifiers": ["module"] } + { + "name": "test_prog-m", + "namespace": [{ + "name": "test_prog-m" + }], + "class_name": "MModule", + "full_name": "test_prog-m", + "visibility": "public", + "modifiers": ["module"] + }