From 790afca6f72a5ee4634e95376d26fdfaeb7d59c8 Mon Sep 17 00:00:00 2001 From: BigBoneDaddy Date: Sun, 28 Jun 2015 08:34:29 -0400 Subject: [PATCH] Updated Testing (asciidoc) --- Testing.asciidoc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Testing.asciidoc b/Testing.asciidoc index 61cf2af..f542351 100644 --- a/Testing.asciidoc +++ b/Testing.asciidoc @@ -13,6 +13,8 @@ else: Use http://nim-lang.org/unittest.html[unittest] +Write your unit test first. Write all of them first! They should fail 100%. Then write your codes. If your codes are correct then when you run your unit tests again they should all pass 100%. If your unit tests do not pass 100% but only pass like 25% then you have error in your codes! Fix your codes and run your unit tests again. Keep fixing codes until the unit tests are 100%. You can remember it by the thinking of : RED :red_circle:, REFACTOR :factory:, GREEN :green_heart:! Go for the green! + ### Functional and integration testing TODO