From: Alexandre Terrasa Date: Tue, 6 Jun 2017 00:23:45 +0000 (-0400) Subject: nitunit: use `test` annotation for modules X-Git-Url: http://nitlanguage.org nitunit: use `test` annotation for modules Signed-off-by: Alexandre Terrasa --- diff --git a/src/testing/testing_suite.nit b/src/testing/testing_suite.nit index 295598b..f29b8ef 100644 --- a/src/testing/testing_suite.nit +++ b/src/testing/testing_suite.nit @@ -17,6 +17,7 @@ module testing_suite import testing_base import html +private import parse_annotations private import annotation private import realtime @@ -438,7 +439,7 @@ redef class ModelBuilder # Run NitUnit test suite for `mmodule` (if it is one). fun test_unit(mmodule: MModule): nullable HTMLTag do # is the module a test_suite? - if get_mmodule_annotation("test_suite", mmodule) == null then return null + if not mmodule.is_test then return null toolcontext.info("nitunit: test-suite {mmodule}", 2) var tester = new NitUnitTester(self)