From ba5dfaa22a9ac47215a7c6651d29be513e384604 Mon Sep 17 00:00:00 2001 From: Alexandre Terrasa Date: Fri, 29 Sep 2017 17:47:59 -0400 Subject: [PATCH] model: tag groups as tests Signed-off-by: Alexandre Terrasa --- src/model/model.nit | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/model/model.nit b/src/model/model.nit index dc9b978..3ceb9f3 100644 --- a/src/model/model.nit +++ b/src/model/model.nit @@ -159,6 +159,14 @@ class ConcernsTree super OrderedTree[MConcern] end +redef class MGroup + redef var is_test is lazy do + var parent = self.parent + if parent != null and parent.is_test then return true + return name == "tests" + end +end + redef class MModule # All the classes introduced in the module var intro_mclasses = new Array[MClass] -- 1.7.9.5