notes/test
Testing
this is not a test page, this is a page about everything relationg software testing.
The test pyramid
- End-to-End(第一层)
- Integration tests(第二层)
- Unit tests(第三层)
或者
UI -> Service -> Unit
这样的
Using sinonjs to test.
Using mocha to test node.js
$ npm install -save-dev mocha
从 promise 到 async/await 的测试的编写
http://staxmanade.com/2015/11/testing-asyncronous-code-with-mochajs-and-es7-async-await/
cheatsheet
interactivly using mocha
$ mocha --inspect-brk
在 Chrome 里打开 about:inspect