Testing
Reference
assertis a keyword that halts code execution when its argument is falseExceptionsare customizeable cousin of assertions.tryis a keyword that guards a piece of code which may throw an exception.exceptis a keyword used to catch and carefully handle that exceptionnoseis a python package with useful assertions and unit test utilitiesnosetestsis a command-line program that collects and runs unit tests.- Unit Tests investigate the behavior of units of code (such as functions, classes, or data structures).
- Regression Tests defend against new bugs, or regressions, which might appear due to new software and updates.
- Integration Tests check that various pieces of the software work together as expected.
- Continuous Integration automates the building and testing process accross platforms.
- Test-driven Development is a software development strategy in which the tests are written before the code.