前端技術之:JavaScript Test 斷言庫

expect
聲稱可以寫更好的斷言。
https://github.com/mjackson/e...

chai
可以寫BDD樣式的斷言,也可以寫TDD樣式的斷言,可用於Node.js與瀏覽器端,可以與任何測試框架集成。
https://github.com/chaijs/chai

SuperTest
可以通過 superagent 更容易地寫HTTP斷言.
https://github.com/visionmedi...

should.js
Node.js的BDD樣式的斷言庫。
https://github.com/shouldjs/s...

commonjs-assert
JavaScript的簡易斷言庫。
https://github.com/browserify...

jShould
爲QUnit而設計的一個簡單斷言庫。
https://github.com/eliperelma...

expectThat
CoffeeScript語言的單元測試與斷言庫。
https://github.com/dmohl/expe...

assert.js
https://github.com/Jxck/assert
已停止維護,建議使用 http://browserify.org/

這些斷言庫中,作者更喜歡使用expect與chai。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章