Hi all,  I  am using jquery and HTML 5 techniques (like File API, HistoryAPI) extensively in a project I am working on. 

I was wondering what tools I can use for 
a) quality assurance my javascript and front end code
b) unit testing my javascript and front end code

Let me share some background info.

If somebody asked me about this but for PHP, I would say, use PHPUnit for writing unit tests, use PHP CodeSniffer and then with the help of Phing and Jenkins, put this all into a single build process.

I basically want to know if something similar can be pulled off with javascript using Jenkins.

Do share your actual experiences. Please advise me on the most beginner-friendly ones. Thank you.

Disclosure: I cross-posted in G+ Javascript and Stackoverflow.

http://programmers.stackexchange.com/questions/180917/what-tools-should-i-use-for-quality-assurance-and-testing-for-front-end-javascri

https://plus.google.com/111509997047726623122/posts/95gxURMWxGg
7
Raymond Andrews's profile photoPeter Droogmans's profile photo余建荣's profile photoKimSia Sim's profile photo
5 comments
 
A big +1 for being a beginner and being concerned with the quality of your code
 
Thank you for the suggestions. My javascript code is more for stuff like: 

a) when hover over something, something happens.
b) when drag n drop, something happens.

For code like these, how do I write such unit tests?
 
It's very difficult to use Unit Test for UI. You should apply unit test in data process or any other similar transaction . I think the only way for UI test is manual test instead of automation test.
Add a comment...