Enterprise Web Development by Yakov Fain Victor Rasputnis Anatole Tartakovsky & Viktor Gamov

Enterprise Web Development by Yakov Fain Victor Rasputnis Anatole Tartakovsky & Viktor Gamov

Author:Yakov Fain, Victor Rasputnis, Anatole Tartakovsky & Viktor Gamov
Language: eng
Format: epub
ISBN: 9781449356811
Publisher: O’Reilly Media, Inc.
Published: 2014-10-26T16:00:00+00:00


Figure 7-14. Setting up a keyboard shortcut for Grunt launcher

By pressing a combination of keys specified in the previous screen, you will be able to launch Grunt for Jasmine tests with one click of a button(s). WebStorm will redirect all the output from the Grunt tool into its Run window, as shown in Figure 7-15.

Figure 7-15. Grunt output in WebStorm

Summary

Testing is one of the most important processes of software development. Well-organized testing helps keep the code in a good working state. It’s especially important in interpreted languages such as JavaScript, which has no compiler to provide a helping hand to find lots of errors in very early stages.

In this situation, static code analysis tools, such as JSHint (discussed in Chapter 5) could help identify typos and enforce best practices accepted by the JavaScript community.

In enterprise projects developed with compiled languages, people often debate whether TDD is really beneficial. With JavaScript, it’s nondebatable unless you have unlimited time and budget and are ready to live with unmaintainable JavaScript.

The enterprises that have adopted test-driven development (as well as behavior-driven development) routines make the application development process safer by including test scripts in the continuous integration build process.

Automating unit tests reduces the number of bugs and decreases the amount of time developers need to spend manually testing their code. If automatically launched test scripts (unit, integration, functional, and load testing) don’t reveal any issues, you can rest assured that the latest code changes did not break the application logic, and that the application performs according to SLA.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.