This is an old revision of the document!
List of common use testing tools
Bad Testing Practice
Glossary
| Method Stub | http://en.wikipedia.org/wiki/Method_stub | |
|---|---|---|
| Mock Object | http://en.wikipedia.org/wiki/Mock_object | e.g. database |
| Test Double | http://en.wikipedia.org/wiki/Test_double | e.g. simplify the complexity of external function |
node.js TDD
https://blog.risingstack.com/getting-node-js-testing-and-tdd-right-node-js-at-scale/
Node modules (via command “npm install -g module-name”)
Setup
Edit project package.json
"devDependencies": {
"mocha": "*",
"chai": "*",
"sinon": "*",
"sinon-chai": "*",
"chai-as-promised": "*"
}
Install the plugins
# npm install