Unit testing is concerned with verifying that the execution of a module or piece of code is the same as the design or expectation. Some developers believe that writing test cases is a waste of time and prefers to write new modules. However, unit testing can actually save time when working with large applications, which helps you keep track of problems and update your code safely.
Common abbreviations
- DOM: Document Object Model
- HTML: Hypertext Markup Language
- Jstd:jstestdriver
- Yui:yahoo! User Interface
In the past, only unit tests were performed on server-side languages. But the growing complexity of front-end components makes it increasingly more demanding to write JavaScript code test cases. If you do not regularly write client-side script tests, learning progress can be very difficult. Testing the user interface may require some tweaking in your thinking. (Some program developers 1:30 will not believe that JavaScript is the right programming language.) )
Source: IBM Technical Documentation