Ajout de l'addon twitch
This commit is contained in:
21
addons/very-simple-twitch/doc/Testing.md
Normal file
21
addons/very-simple-twitch/doc/Testing.md
Normal file
@@ -0,0 +1,21 @@
|
||||
# Testing
|
||||
|
||||
## Adding test
|
||||
|
||||
Use "assert_eq" for "primitive" values and "assert_eq_deep" for complex data
|
||||
|
||||
For add some test be sure:
|
||||
1. Your test are inside /test folder
|
||||
2. Your test file starts with test name
|
||||
3. Your test script extends from "GutTest"
|
||||
4. Your test methods starts also with test
|
||||
|
||||
You can use some useful methods for testing like:
|
||||
* before_all -> Excecuted before all tests in the script
|
||||
* before_each -> Excecuted before each test in the script
|
||||
* after_each -> Excecuted after each test in the script
|
||||
* after_all -> Excecuted after all tests in the script
|
||||
|
||||
|
||||
## GUT Documentation
|
||||
https://gut.readthedocs.io/en/latest/
|
||||
Reference in New Issue
Block a user