633 B
633 B
Testing
Adding test
Use "assert_eq" for "primitive" values and "assert_eq_deep" for complex data
For add some test be sure:
- Your test are inside /test folder
- Your test file starts with test name
- Your test script extends from "GutTest"
- 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