Destroyed Testing (asciidoc)
This commit is contained in:
parent
3f1d32f339
commit
3392a1b9b8
|
@ -1,26 +0,0 @@
|
||||||
### 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
|
|
||||||
|
|
||||||
Use http://nim-lang.org/docs/unittest.html[unittest]
|
|
||||||
|
|
||||||
### Functional and integration testing
|
|
||||||
|
|
||||||
TODO
|
|
||||||
|
|
||||||
### Code coverage
|
|
||||||
|
|
||||||
Try to test every path of execution in your softwares. That is the key to maximizing your code coverages.
|
|
||||||
|
|
||||||
https://github.com/yglukhov/coverage[Coverage library]
|
|
||||||
|
|
||||||
TODO
|
|
Loading…
Reference in New Issue