nitunit: bad code count as code (to avoid more failures that code)
authorJean Privat <jean@pryen.org>
Wed, 17 Jun 2015 15:12:16 +0000 (11:12 -0400)
committerJean Privat <jean@pryen.org>
Wed, 17 Jun 2015 15:12:16 +0000 (11:12 -0400)
Signed-off-by: Jean Privat <jean@pryen.org>

src/testing/testing_doc.nit

index 1d6096e..b79d1c8 100644 (file)
@@ -76,6 +76,7 @@ class NitUnitExecutor
                                var ne = new HTMLTag("failure")
                                ne.attr("message", msg)
                                tc.add ne
+                               toolcontext.modelbuilder.unit_entities += 1
                                toolcontext.modelbuilder.failed_entities += 1
                        end
                        if blocks.is_empty then testsuite.add(tc)