eBooks-it.org Logo
eBooks-IT.org Inner Image

Jasmine JavaScript Testing

Jasmine JavaScript Testing Image

Book Details:

Publisher:Packt Publishing
Series: Packt
Author:Paulo Ragonha
Edition:1
ISBN-10:178216720X
ISBN-13:9781782167204
Pages:146
Published:Aug 26 2013
Posted:Nov 19 2014
Language:English
Book format:PDF
Book size:3.4 MB

Book Description:

Leverage the power of unit testing to create bigger and better JavaScript applications Overview Learn the power of test-driven development while creating a fully-featured web application Understand the best practices for modularization and code organization while putting your application to scale Leverage the power of frameworks such as BackboneJS and jQuery while maintaining the code quality Automate everything from spec execution to build; leave repetition to the monkeys In Detail From a little renegade scripting language to the de facto standard platform of today, JavaScript has become a universal language available in the widest range of devices; it is truly the 'write once, run everywhere language. However, as JavaScript applications become more complicated, testing and applying sustainable software engineering practices also become mandatory. Jasmine JavaScript Testing is a practical guide to a more sustainable JavaScript development process. You will learn by example how to drive the development of a web application using tests and best practices. This book is about becoming a better JavaScript developer. So, throughout the chapters, you will not only learn about writing tests, but also about the best practices for writing software in the JavaScript language. This book is about acknowledging JavaScript as a real platform for application development and leveraging all of its potential. You will also learn about tooling and automation and how to make your life easier and more productive. You will learn how to create a sustainable codebase with the help of Jasmine. We will take a look at integrated testing (with a backend NodeJS server) and how you can speed this process up by faking AJAX requests. As you progress through the book, you will learn about the challenges of testing an application built on top of a framework and how you can prevent your application from suffering from dependency management hell. Also, since your applications need to get into production, you will learn about optimizing the code to reduce the number of requests the browser needs to make while loading your application. With this book, you will learn everything you need to know to become a real professional in the ever-demanding JavaScript universe. What you will learn from this book Drive your application development entirely by tests Organize your application code in modules with RequireJS Create a fully-tested jQuery plugin Solve problems and learn best practices for asynchronous testing Use Stubs and Spies to perform quick unit testing Test-drive a BackboneJS application Optimize your JavaScript code to production Master the power of tooling and automation with GruntJS Run your tests on the cloud with Travis-CI Approach The book uses a concise, to-the-point approach to help developers understand and use the power of Jasmine to create better and more maintainable codebases. Who this book is written for This book is a must-have guide for web developers who are new to the concept of unit testing. Its assumed that you have a basic knowledge of JavaScript and HTML.

Download Link:

Related Books:

JavaScript Testing with Jasmine

JavaScript Behavior-Driven Development
JavaScript Testing with Jasmine Image
Get a concise introduction to Jasmine, the popular behavior-driven testing framework for JavaScript. This practical guide shows you how to write unit tests with Jasmine that automatically check for bugs in your application. Learn how to write specifications for individual components, and then use those specs to test the code you write. Throughout the book, author Evan Hahn focuses primarily on methods for testing browser-based JavaScript applications, but you'll also discover how to use Jasmine with CoffeeScript, Node.js, Ruby on Rails, and Ruby without Rails. You won't find a more in-depth source for Jasmine anywhere. Get an overview of both test-driven and behavior-driven development Write useful specs by determining what you need to testand what y...

JavaScript Testing Beginner's Guide

JavaScript Testing Beginner's Guide Image
This book is organized such that only the most essential information is provided to you in each chapter so as to maximize your learning. Examples and tutorials are given in an easy to follow, step-by-step manner so that you can see how the testing process is being carried out and how the code is being written. The source code also contains detailed explanation so that you know what the code is doing. Multiple screenshots are used in places that matter so that you have a visual sense of what is happening. Beginner JavaScript developers looking for essential ways to write, test, and debug JavaScript for different purposes and situations....

Continuous Testing

With Ruby, Rails, and JavaScript
Continuous Testing Image
We all know feedback is good. Why not get it instantly? Continuous Testing with Ruby shows you how to use a combination of tests, tools, and techniques to immediately detect problems in code. This book will help you create a personalized development environment that instantly validates your decisions as you make changes to your code. This rapid feedback allows you to focus on the problem at hand, rather than constantly re-checking prior work. If you want to spend more of your time writing valuable software, and less time slogging through code line-by-line in a debugger, Continuous Testing with Ruby can help you! Continuous Testing (CT) is a developer practice that shortens the feedback loops established by test-driven development and continuous integ...



2007 - 2021 © eBooks-IT.org