Jasmine cookbook : over 35 recipes to design and develop Jasmine tests to produce world-class JavaScript applications /
Annotation
Clasificación: | Libro Electrónico |
---|---|
Autor principal: | |
Formato: | Electrónico eBook |
Idioma: | Inglés |
Publicado: |
Birmingham, UK :
Packt Publishing,
2015.
|
Colección: | Community experience distilled.
|
Temas: | |
Acceso en línea: | Texto completo (Requiere registro previo con correo institucional) |
Tabla de Contenidos:
- Cover; Copyright; Credits; About the Author; About the Reviewer; www.PacktPub.com; Table of Contents; Preface; Chapter 1: Getting Started with Jasmine Framework; Introduction; Writing your first Jasmine test; Adding specs to your Jasmine test; Adding expectations and matchers to the test; Applying different matchers to the Jasmine test; Applying setup and teardown functions to the Jasmine test; Using the ""this"" keyword; Chapter 2: Jasmine with TDD and BDD Processes; Introduction; Writing Jasmine tests using TDD and BDD processes; Creating a Jasmine test for new code using TDD and BDD
- Designing Jasmine tests for existing code using TDD and BDDDefining nested suites to write more meaningful specs; Customizing Matchers and Jasmine Chapter 3: Functions; Introduction; Writing a Jasmine test using a custom equality tester function; Writing Jasmine tests with custom matchers; Writing Jasmine tests for exceptions; Declaring pending specs with Jasmine tests; Chapter 4: Designing Specs from Requirement; Introduction; Writing useful specs by analyzing the test requirements; Implementing the Jasmine test corresponding to the specs; Applying Acceptance Criteria to the Jasmine test
- Organizing Jasmine specs into groups and subgroupsChapter 5: Jasmine Spies; Introduction; Writing Jasmine tests using the spyOn() method and special matchers for spies; Writing Jasmine tests using tracking properties; Writing Jasmine tests with your own custom spy method; Using jasmine.any and jasmine.objectContaining; Writing Jasmine tests to mock the JavaScript timeout functions; Chapter 6: Jasmine with AJAX, jQuery, and Fixtures; Introduction; Writing Jasmine specs for AJAX; Designing Jasmine specs with HTML and JSON fixtures; Writing Jasmine specs for jQuery
- Writing Jasmine specs using custom jQuery matchersWriting Jasmine specs for asynchronous operations using the done() function; Chapter 7: Code Coverage with Jasmine Tests; Introduction; Configuring code coverage tools; Generating code coverage using karma and istanbul; Writing Jasmine specs for uncovered branches/code; Increasing code coverage for existing code; Chapter 8: Jasmine with Other Tools; Introduction; Writing Jasmine tests for AngularJS; Using Jasmine with CoffeeScript; Writing Jasmine tests for Node.js; Chapter 9: Developing JavaScript Apps Using Jasmine
- a Real-time Scenario
- IntroductionDefining Jasmine specs corresponding to a user story; Implementing Jasmine specs with Web/HTML; Implementing Jasmine tests with a Data-Driven approach; Creating Jasmine tests for a change request; Index