Created Testing (asciidoc)

This commit is contained in:
Federico Ceratto 2015-04-22 13:57:33 +01:00
parent e810404cda
commit 17f89b51d5
1 changed files with 19 additions and 0 deletions

19
Testing.asciidoc Normal file
View File

@ -0,0 +1,19 @@
### General testing tips
Define a "testing" conditional symbol at compile time: nim --define:testing main.nim
``` Nim
when defined(testing):
# testing-related code
else:
# production code
```
### Unit testing
http://nim-lang.org/unittest.html[unittest]
### Functional and integration testing
### Code coverage