markdown 编写可测试JavaScript的资源
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了markdown 编写可测试JavaScript的资源相关的知识,希望对你有一定的参考价值。
# Testable JavaScript Resources
> Testing JavaScript isn't just a thing you can read about in children's fairy tales.
*This is just a scratch pad of everything I find. As the really good resources start to float to the top, I'll transition them to a more permanent GitHub repo.*
## General
- [Test-Driven JavaScript Development](http://www.amazon.com/Test-Driven-JavaScript-Development-Developers-Library-ebook/dp/B004519O02) [book]
- [JavaScript Testing Recipes](http://jstesting.jcoglan.com/) [book]
- [Testable JavaScript](http://www.amazon.com/Testable-JavaScript-Mark-Ethan-Trostler/dp/1449323391) [book]
- [Testable JavaScript - Architecting Your Application for Testability](https://www.youtube.com/watch?v=JjqKQ8ezwKQ) [video]
- [Writing Testable JavaScript (A List Apart)](http://alistapart.com/article/writing-testable-javascript) [article]
- [Writing Testable JavaScript (Adequately Good)](http://www.adequatelygood.com/Writing-Testable-JavaScript.html) [article]
- [Writing Testable Frontend JavaScript Part 1 - Anti-Patterns and Their Fixes](https://shanetomlinson.com/2013/testing-javascript-frontend-part-1-anti-patterns-and-fixes/) [article]
- [Writing Testable Frontend JavaScript Part 2 - Refactor Away Anti-Patterns](https://shanetomlinson.com/2013/writing-testable-javascript-part-2-refactor-away-anti-patterns/) [article]
## Other
- [Testing Your Frontend JavaScript Code Using Mocha, Chai, and Sinon](https://nicolas.perriault.net/code/2013/testing-frontend-javascript-code-using-mocha-chai-and-sinon/) [article]
- [JavaScript Dom Testing With Mocha + Grunt + Chai and JQuery](http://faizhasim.com/javascript-dom-testing-with-mocha-grunt-chai-jquery/) [article]
## Tools
- [JavaScript Unit Test Tools](http://stackoverflow.com/questions/300855/javascript-unit-test-tools-for-tdd) [StackOverflow]
### PhantomJS
- [PhantomJS](http://phantomjs.org/) [tool]
- [mocha-phantomjs](http://metaskills.net/mocha-phantomjs/) [tool]
- [Testing JavaScript with PhantomJS](http://code.tutsplus.com/tutorials/testing-javascript-with-phantomjs--net-28243)
- [PhantomJS: POST, Auth, and Timeouts](http://darrendev.blogspot.jp/2013/04/phantomjs-post-auth-and-timeouts.html) [article]
- [Proxy Authentication in PhantomJS](http://mobiletestingfordummies.tumblr.com/post/87004870957/proxy-authentication-in-phantomjs) [article]
- [jQuery + Node.js + PhantomJS = Automation Awesomesauce](https://www.youtube.com/watch?v=b7d3P5KGk28) [video]
### CasperJS
- [CasperJS](http://casperjs.org/) [tool]
- [mocha-casperjs](https://github.com/nathanboktae/mocha-casperjs) [tool]
- [A Drinking Tour of CasperJS](http://slidedeck.io/founddrama/drinking-tour-of-casperjs) [slides]
- [Testing with Casper-Phantom-Mocha-Chai](http://annelu.com/testing-with-casper-phantom-mocha-chai/) [article]
- [End to End Testing with CasperJS](https://coderwall.com/p/ricgfq) [article]
- [Frontend Testing with PhantomJS and CasperJS](http://robertbasic.com/blog/frontend-testing-with-phantomjs-and-casperjs) [article]
以上是关于markdown 编写可测试JavaScript的资源的主要内容,如果未能解决你的问题,请参考以下文章