Testing business logic in Javascript

Source: Internet
Author: User
If you test server side and its a node. js based app then there is the option ofkyuri
+ Vowsjs. If not then you might be able to get what you want with plain old code comments, writing the tests in coffeescript
(Which is simpler syntax, but compiles to Javascript) and any decent JavaScript unit testing framework, especially if you're using a good JavaScript MVC Framework. If you're into BDD then Jasmine
Shocould be your first evaluation. Otherwise first check outmocha (my favorite) for node apps, qunit if using jquery heavily & DOH
Dojo. you'll also need to decide on the environment you want to run your client side tests in. ideally your business logic shocould be decoupled from the UI, but if it's not then js-test-driver is
A great tool for running tests in real browsers. If you don't need a full browser then try phantomjs, it's good and much faster.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.