Backbone.js testing: plan, architect, and develop tests for Backbone.js applications using modern testing principles and practices
Gespeichert in:
1. Verfasser: | |
---|---|
Format: | Elektronisch E-Book |
Sprache: | English |
Veröffentlicht: |
Birmingham
Packt Pub.
2013
|
Schriftenreihe: | Community experience distilled
|
Schlagworte: | |
Online-Zugang: | FAW01 FAW02 |
Beschreibung: | Includes index Cover; Copyright; Credits; About the Author; About the Reviewers; www.PacktPub.com; Table of Contents; Preface; Chapter 1:Setting Up a Test Infrastructure; Designing an application and test repository structure; Getting the test libraries; Mocha; Chai; Sinon. JS; Setting up and writing our first tests; The test driver page; Adding some tests; Running and assessing test results; The first test report; Test report actions; Test timing and slow tests; Test failures; Summary; Chapter 2:Creating a Backbone.js Application Test Plan; A Backbone.js refresher Selecting a Backbone.js application to testGetting acquainted with the Notes application; Anatomy of the Notes application; Test paradigms and methods; Testing concepts, approaches, and planning; Testing individual Backbone.js components; Models; Collections; Templates; Views; Routers; Utilities; Testing application interactions and events; Partial integrations; Events; Dipping our toes in the application testing waters; Namespace; Note model; Running the application tests; Summary; Chapter 3:Test Assertions, Specs, and Suites; Choosing a test style that fits; Mocha test interfaces Chai assertion stylesTrying out some different styles; Mocha and Chai BDD interfaces; Mocha TDD and Chai assert styles; Deciding on the project style; A tour of the Chai assertion library; Chaining objects and assertions; Basic value assertions; Comparing values; Object and array validation; Errors; Getting the application and tests ready to run; The Mocha test runner; Reconfiguring the application for testing; Organizing topics and specifications into test suites; Starting up and winding down tests; Writing Mocha test specifications; Asynchronous behavior in tests Some Backbone.js collection testsTesting and supporting Backbone.js views; The Notes application single note view; Creating HTML fixtures for view tests; Walking through the view test suite; Aggregating and running the application tests; Test development tips, tricks, and hints; Isolating and excluding tests; Writing testable application code; Summary; Chapter 4:Test Spies; Fake it 'til you make it; Getting to know Sinon. JS; Spying on functions with Sinon. JS; Anonymous spies; Spy assertions; Function spies; Object method spies; Playing in the sandbox with Sinon. JS test helpers Delving into the Sinon. JS spy APIThe spy API; The spy call API; Spicing up Chai with the Sinon. JS plugin; Introducing and installing Chai plugins; The Sinon. JS plugin; Testing Backbone.js components with spies; The Notes menu bar view; The menu bar view; Testing and spying on the menu bar view; The Notes single note view; The single note view; Testing the single note view; Hooking up and running the view tests; Summary; Chapter 5:Test Stubs and Mocks; Replacing method behaviors with Sinon. JS stubs; Getting started with stubs; The stub API; Faking and verifying behavior with Sinon. JS mocks This book is packed with the step by step tutorial and instructions in recipe format helping you setup test infrastructure and gradually advance your skills to plan, develop, and test your backbone applications. If you are a JavaScript developer looking for recipes to create and implement test support for your backbone application, then this book is ideal for you |
Beschreibung: | iv, 154 pages : |
ISBN: | 9781782165255 1782165258 178216524X 9781782165248 |
Internformat
MARC
LEADER | 00000nmm a2200000zc 4500 | ||
---|---|---|---|
001 | BV043777145 | ||
003 | DE-604 | ||
005 | 00000000000000.0 | ||
007 | cr|uuu---uuuuu | ||
008 | 160920s2013 |||| o||u| ||||||eng d | ||
020 | |a 9781782165255 |9 978-1-78216-525-5 | ||
020 | |a 1782165258 |9 1-78216-525-8 | ||
020 | |a 178216524X |9 1-78216-524-X | ||
020 | |a 9781782165248 |9 978-1-78216-524-8 | ||
020 | |a 9781782165248 |9 978-1-78216-524-8 | ||
035 | |a (ZDB-4-EBA)ocn857078903 | ||
035 | |a (ZDB-4-ITC)ocn857078903 | ||
035 | |a (OCoLC)857078903 | ||
035 | |a (DE-599)BVBBV043777145 | ||
040 | |a DE-604 |b ger |e aacr | ||
041 | 0 | |a eng | |
049 | |a DE-1046 |a DE-1047 | ||
082 | 0 | |a 005.2 |2 23 | |
100 | 1 | |a Roemer, Ryan |e Verfasser |4 aut | |
245 | 1 | 0 | |a Backbone.js testing |b plan, architect, and develop tests for Backbone.js applications using modern testing principles and practices |c Ryan Roemer |
264 | 1 | |a Birmingham |b Packt Pub. |c 2013 | |
300 | |a iv, 154 pages : | ||
336 | |b txt |2 rdacontent | ||
337 | |b c |2 rdamedia | ||
338 | |b cr |2 rdacarrier | ||
490 | 0 | |a Community experience distilled | |
500 | |a Includes index | ||
500 | |a Cover; Copyright; Credits; About the Author; About the Reviewers; www.PacktPub.com; Table of Contents; Preface; Chapter 1:Setting Up a Test Infrastructure; Designing an application and test repository structure; Getting the test libraries; Mocha; Chai; Sinon. JS; Setting up and writing our first tests; The test driver page; Adding some tests; Running and assessing test results; The first test report; Test report actions; Test timing and slow tests; Test failures; Summary; Chapter 2:Creating a Backbone.js Application Test Plan; A Backbone.js refresher | ||
500 | |a Selecting a Backbone.js application to testGetting acquainted with the Notes application; Anatomy of the Notes application; Test paradigms and methods; Testing concepts, approaches, and planning; Testing individual Backbone.js components; Models; Collections; Templates; Views; Routers; Utilities; Testing application interactions and events; Partial integrations; Events; Dipping our toes in the application testing waters; Namespace; Note model; Running the application tests; Summary; Chapter 3:Test Assertions, Specs, and Suites; Choosing a test style that fits; Mocha test interfaces | ||
500 | |a Chai assertion stylesTrying out some different styles; Mocha and Chai BDD interfaces; Mocha TDD and Chai assert styles; Deciding on the project style; A tour of the Chai assertion library; Chaining objects and assertions; Basic value assertions; Comparing values; Object and array validation; Errors; Getting the application and tests ready to run; The Mocha test runner; Reconfiguring the application for testing; Organizing topics and specifications into test suites; Starting up and winding down tests; Writing Mocha test specifications; Asynchronous behavior in tests | ||
500 | |a Some Backbone.js collection testsTesting and supporting Backbone.js views; The Notes application single note view; Creating HTML fixtures for view tests; Walking through the view test suite; Aggregating and running the application tests; Test development tips, tricks, and hints; Isolating and excluding tests; Writing testable application code; Summary; Chapter 4:Test Spies; Fake it 'til you make it; Getting to know Sinon. JS; Spying on functions with Sinon. JS; Anonymous spies; Spy assertions; Function spies; Object method spies; Playing in the sandbox with Sinon. JS test helpers | ||
500 | |a Delving into the Sinon. JS spy APIThe spy API; The spy call API; Spicing up Chai with the Sinon. JS plugin; Introducing and installing Chai plugins; The Sinon. JS plugin; Testing Backbone.js components with spies; The Notes menu bar view; The menu bar view; Testing and spying on the menu bar view; The Notes single note view; The single note view; Testing the single note view; Hooking up and running the view tests; Summary; Chapter 5:Test Stubs and Mocks; Replacing method behaviors with Sinon. JS stubs; Getting started with stubs; The stub API; Faking and verifying behavior with Sinon. JS mocks | ||
500 | |a This book is packed with the step by step tutorial and instructions in recipe format helping you setup test infrastructure and gradually advance your skills to plan, develop, and test your backbone applications. If you are a JavaScript developer looking for recipes to create and implement test support for your backbone application, then this book is ideal for you | ||
650 | 7 | |a COMPUTERS / General |2 bisacsh | |
650 | 7 | |a Application software / Development |2 fast | |
650 | 7 | |a JavaScript (Computer program language) |2 fast | |
650 | 7 | |a Web site development |2 fast | |
650 | 4 | |a JavaScript (Computer program language) | |
650 | 4 | |a Web site development | |
650 | 4 | |a Application software |x Development | |
912 | |a ZDB-4-EBA |a ZDB-4-ITC | ||
999 | |a oai:aleph.bib-bvb.de:BVB01-029188205 | ||
966 | e | |u http://search.ebscohost.com/login.aspx?direct=true&scope=site&db=nlebk&AN=608696 |l FAW01 |p ZDB-4-EBA |q FAW_PDA_EBA |x Aggregator |3 Volltext | |
966 | e | |u http://search.ebscohost.com/login.aspx?direct=true&scope=site&db=nlebk&AN=608696 |l FAW02 |p ZDB-4-EBA |q FAW_PDA_EBA |x Aggregator |3 Volltext |
Datensatz im Suchindex
_version_ | 1804176604441608192 |
---|---|
any_adam_object | |
author | Roemer, Ryan |
author_facet | Roemer, Ryan |
author_role | aut |
author_sort | Roemer, Ryan |
author_variant | r r rr |
building | Verbundindex |
bvnumber | BV043777145 |
collection | ZDB-4-EBA ZDB-4-ITC |
ctrlnum | (ZDB-4-EBA)ocn857078903 (ZDB-4-ITC)ocn857078903 (OCoLC)857078903 (DE-599)BVBBV043777145 |
dewey-full | 005.2 |
dewey-hundreds | 000 - Computer science, information, general works |
dewey-ones | 005 - Computer programming, programs, data, security |
dewey-raw | 005.2 |
dewey-search | 005.2 |
dewey-sort | 15.2 |
dewey-tens | 000 - Computer science, information, general works |
discipline | Informatik |
format | Electronic eBook |
fullrecord | <?xml version="1.0" encoding="UTF-8"?><collection xmlns="http://www.loc.gov/MARC21/slim"><record><leader>05231nmm a2200553zc 4500</leader><controlfield tag="001">BV043777145</controlfield><controlfield tag="003">DE-604</controlfield><controlfield tag="005">00000000000000.0</controlfield><controlfield tag="007">cr|uuu---uuuuu</controlfield><controlfield tag="008">160920s2013 |||| o||u| ||||||eng d</controlfield><datafield tag="020" ind1=" " ind2=" "><subfield code="a">9781782165255</subfield><subfield code="9">978-1-78216-525-5</subfield></datafield><datafield tag="020" ind1=" " ind2=" "><subfield code="a">1782165258</subfield><subfield code="9">1-78216-525-8</subfield></datafield><datafield tag="020" ind1=" " ind2=" "><subfield code="a">178216524X</subfield><subfield code="9">1-78216-524-X</subfield></datafield><datafield tag="020" ind1=" " ind2=" "><subfield code="a">9781782165248</subfield><subfield code="9">978-1-78216-524-8</subfield></datafield><datafield tag="020" ind1=" " ind2=" "><subfield code="a">9781782165248</subfield><subfield code="9">978-1-78216-524-8</subfield></datafield><datafield tag="035" ind1=" " ind2=" "><subfield code="a">(ZDB-4-EBA)ocn857078903</subfield></datafield><datafield tag="035" ind1=" " ind2=" "><subfield code="a">(ZDB-4-ITC)ocn857078903</subfield></datafield><datafield tag="035" ind1=" " ind2=" "><subfield code="a">(OCoLC)857078903</subfield></datafield><datafield tag="035" ind1=" " ind2=" "><subfield code="a">(DE-599)BVBBV043777145</subfield></datafield><datafield tag="040" ind1=" " ind2=" "><subfield code="a">DE-604</subfield><subfield code="b">ger</subfield><subfield code="e">aacr</subfield></datafield><datafield tag="041" ind1="0" ind2=" "><subfield code="a">eng</subfield></datafield><datafield tag="049" ind1=" " ind2=" "><subfield code="a">DE-1046</subfield><subfield code="a">DE-1047</subfield></datafield><datafield tag="082" ind1="0" ind2=" "><subfield code="a">005.2</subfield><subfield code="2">23</subfield></datafield><datafield tag="100" ind1="1" ind2=" "><subfield code="a">Roemer, Ryan</subfield><subfield code="e">Verfasser</subfield><subfield code="4">aut</subfield></datafield><datafield tag="245" ind1="1" ind2="0"><subfield code="a">Backbone.js testing</subfield><subfield code="b">plan, architect, and develop tests for Backbone.js applications using modern testing principles and practices</subfield><subfield code="c">Ryan Roemer</subfield></datafield><datafield tag="264" ind1=" " ind2="1"><subfield code="a">Birmingham</subfield><subfield code="b">Packt Pub.</subfield><subfield code="c">2013</subfield></datafield><datafield tag="300" ind1=" " ind2=" "><subfield code="a">iv, 154 pages :</subfield></datafield><datafield tag="336" ind1=" " ind2=" "><subfield code="b">txt</subfield><subfield code="2">rdacontent</subfield></datafield><datafield tag="337" ind1=" " ind2=" "><subfield code="b">c</subfield><subfield code="2">rdamedia</subfield></datafield><datafield tag="338" ind1=" " ind2=" "><subfield code="b">cr</subfield><subfield code="2">rdacarrier</subfield></datafield><datafield tag="490" ind1="0" ind2=" "><subfield code="a">Community experience distilled</subfield></datafield><datafield tag="500" ind1=" " ind2=" "><subfield code="a">Includes index</subfield></datafield><datafield tag="500" ind1=" " ind2=" "><subfield code="a">Cover; Copyright; Credits; About the Author; About the Reviewers; www.PacktPub.com; Table of Contents; Preface; Chapter 1:Setting Up a Test Infrastructure; Designing an application and test repository structure; Getting the test libraries; Mocha; Chai; Sinon. JS; Setting up and writing our first tests; The test driver page; Adding some tests; Running and assessing test results; The first test report; Test report actions; Test timing and slow tests; Test failures; Summary; Chapter 2:Creating a Backbone.js Application Test Plan; A Backbone.js refresher</subfield></datafield><datafield tag="500" ind1=" " ind2=" "><subfield code="a">Selecting a Backbone.js application to testGetting acquainted with the Notes application; Anatomy of the Notes application; Test paradigms and methods; Testing concepts, approaches, and planning; Testing individual Backbone.js components; Models; Collections; Templates; Views; Routers; Utilities; Testing application interactions and events; Partial integrations; Events; Dipping our toes in the application testing waters; Namespace; Note model; Running the application tests; Summary; Chapter 3:Test Assertions, Specs, and Suites; Choosing a test style that fits; Mocha test interfaces</subfield></datafield><datafield tag="500" ind1=" " ind2=" "><subfield code="a">Chai assertion stylesTrying out some different styles; Mocha and Chai BDD interfaces; Mocha TDD and Chai assert styles; Deciding on the project style; A tour of the Chai assertion library; Chaining objects and assertions; Basic value assertions; Comparing values; Object and array validation; Errors; Getting the application and tests ready to run; The Mocha test runner; Reconfiguring the application for testing; Organizing topics and specifications into test suites; Starting up and winding down tests; Writing Mocha test specifications; Asynchronous behavior in tests</subfield></datafield><datafield tag="500" ind1=" " ind2=" "><subfield code="a">Some Backbone.js collection testsTesting and supporting Backbone.js views; The Notes application single note view; Creating HTML fixtures for view tests; Walking through the view test suite; Aggregating and running the application tests; Test development tips, tricks, and hints; Isolating and excluding tests; Writing testable application code; Summary; Chapter 4:Test Spies; Fake it 'til you make it; Getting to know Sinon. JS; Spying on functions with Sinon. JS; Anonymous spies; Spy assertions; Function spies; Object method spies; Playing in the sandbox with Sinon. JS test helpers</subfield></datafield><datafield tag="500" ind1=" " ind2=" "><subfield code="a">Delving into the Sinon. JS spy APIThe spy API; The spy call API; Spicing up Chai with the Sinon. JS plugin; Introducing and installing Chai plugins; The Sinon. JS plugin; Testing Backbone.js components with spies; The Notes menu bar view; The menu bar view; Testing and spying on the menu bar view; The Notes single note view; The single note view; Testing the single note view; Hooking up and running the view tests; Summary; Chapter 5:Test Stubs and Mocks; Replacing method behaviors with Sinon. JS stubs; Getting started with stubs; The stub API; Faking and verifying behavior with Sinon. JS mocks</subfield></datafield><datafield tag="500" ind1=" " ind2=" "><subfield code="a">This book is packed with the step by step tutorial and instructions in recipe format helping you setup test infrastructure and gradually advance your skills to plan, develop, and test your backbone applications. If you are a JavaScript developer looking for recipes to create and implement test support for your backbone application, then this book is ideal for you</subfield></datafield><datafield tag="650" ind1=" " ind2="7"><subfield code="a">COMPUTERS / General</subfield><subfield code="2">bisacsh</subfield></datafield><datafield tag="650" ind1=" " ind2="7"><subfield code="a">Application software / Development</subfield><subfield code="2">fast</subfield></datafield><datafield tag="650" ind1=" " ind2="7"><subfield code="a">JavaScript (Computer program language)</subfield><subfield code="2">fast</subfield></datafield><datafield tag="650" ind1=" " ind2="7"><subfield code="a">Web site development</subfield><subfield code="2">fast</subfield></datafield><datafield tag="650" ind1=" " ind2="4"><subfield code="a">JavaScript (Computer program language)</subfield></datafield><datafield tag="650" ind1=" " ind2="4"><subfield code="a">Web site development</subfield></datafield><datafield tag="650" ind1=" " ind2="4"><subfield code="a">Application software</subfield><subfield code="x">Development</subfield></datafield><datafield tag="912" ind1=" " ind2=" "><subfield code="a">ZDB-4-EBA</subfield><subfield code="a">ZDB-4-ITC</subfield></datafield><datafield tag="999" ind1=" " ind2=" "><subfield code="a">oai:aleph.bib-bvb.de:BVB01-029188205</subfield></datafield><datafield tag="966" ind1="e" ind2=" "><subfield code="u">http://search.ebscohost.com/login.aspx?direct=true&scope=site&db=nlebk&AN=608696</subfield><subfield code="l">FAW01</subfield><subfield code="p">ZDB-4-EBA</subfield><subfield code="q">FAW_PDA_EBA</subfield><subfield code="x">Aggregator</subfield><subfield code="3">Volltext</subfield></datafield><datafield tag="966" ind1="e" ind2=" "><subfield code="u">http://search.ebscohost.com/login.aspx?direct=true&scope=site&db=nlebk&AN=608696</subfield><subfield code="l">FAW02</subfield><subfield code="p">ZDB-4-EBA</subfield><subfield code="q">FAW_PDA_EBA</subfield><subfield code="x">Aggregator</subfield><subfield code="3">Volltext</subfield></datafield></record></collection> |
id | DE-604.BV043777145 |
illustrated | Not Illustrated |
indexdate | 2024-07-10T07:34:49Z |
institution | BVB |
isbn | 9781782165255 1782165258 178216524X 9781782165248 |
language | English |
oai_aleph_id | oai:aleph.bib-bvb.de:BVB01-029188205 |
oclc_num | 857078903 |
open_access_boolean | |
owner | DE-1046 DE-1047 |
owner_facet | DE-1046 DE-1047 |
physical | iv, 154 pages : |
psigel | ZDB-4-EBA ZDB-4-ITC ZDB-4-EBA FAW_PDA_EBA |
publishDate | 2013 |
publishDateSearch | 2013 |
publishDateSort | 2013 |
publisher | Packt Pub. |
record_format | marc |
series2 | Community experience distilled |
spelling | Roemer, Ryan Verfasser aut Backbone.js testing plan, architect, and develop tests for Backbone.js applications using modern testing principles and practices Ryan Roemer Birmingham Packt Pub. 2013 iv, 154 pages : txt rdacontent c rdamedia cr rdacarrier Community experience distilled Includes index Cover; Copyright; Credits; About the Author; About the Reviewers; www.PacktPub.com; Table of Contents; Preface; Chapter 1:Setting Up a Test Infrastructure; Designing an application and test repository structure; Getting the test libraries; Mocha; Chai; Sinon. JS; Setting up and writing our first tests; The test driver page; Adding some tests; Running and assessing test results; The first test report; Test report actions; Test timing and slow tests; Test failures; Summary; Chapter 2:Creating a Backbone.js Application Test Plan; A Backbone.js refresher Selecting a Backbone.js application to testGetting acquainted with the Notes application; Anatomy of the Notes application; Test paradigms and methods; Testing concepts, approaches, and planning; Testing individual Backbone.js components; Models; Collections; Templates; Views; Routers; Utilities; Testing application interactions and events; Partial integrations; Events; Dipping our toes in the application testing waters; Namespace; Note model; Running the application tests; Summary; Chapter 3:Test Assertions, Specs, and Suites; Choosing a test style that fits; Mocha test interfaces Chai assertion stylesTrying out some different styles; Mocha and Chai BDD interfaces; Mocha TDD and Chai assert styles; Deciding on the project style; A tour of the Chai assertion library; Chaining objects and assertions; Basic value assertions; Comparing values; Object and array validation; Errors; Getting the application and tests ready to run; The Mocha test runner; Reconfiguring the application for testing; Organizing topics and specifications into test suites; Starting up and winding down tests; Writing Mocha test specifications; Asynchronous behavior in tests Some Backbone.js collection testsTesting and supporting Backbone.js views; The Notes application single note view; Creating HTML fixtures for view tests; Walking through the view test suite; Aggregating and running the application tests; Test development tips, tricks, and hints; Isolating and excluding tests; Writing testable application code; Summary; Chapter 4:Test Spies; Fake it 'til you make it; Getting to know Sinon. JS; Spying on functions with Sinon. JS; Anonymous spies; Spy assertions; Function spies; Object method spies; Playing in the sandbox with Sinon. JS test helpers Delving into the Sinon. JS spy APIThe spy API; The spy call API; Spicing up Chai with the Sinon. JS plugin; Introducing and installing Chai plugins; The Sinon. JS plugin; Testing Backbone.js components with spies; The Notes menu bar view; The menu bar view; Testing and spying on the menu bar view; The Notes single note view; The single note view; Testing the single note view; Hooking up and running the view tests; Summary; Chapter 5:Test Stubs and Mocks; Replacing method behaviors with Sinon. JS stubs; Getting started with stubs; The stub API; Faking and verifying behavior with Sinon. JS mocks This book is packed with the step by step tutorial and instructions in recipe format helping you setup test infrastructure and gradually advance your skills to plan, develop, and test your backbone applications. If you are a JavaScript developer looking for recipes to create and implement test support for your backbone application, then this book is ideal for you COMPUTERS / General bisacsh Application software / Development fast JavaScript (Computer program language) fast Web site development fast JavaScript (Computer program language) Web site development Application software Development |
spellingShingle | Roemer, Ryan Backbone.js testing plan, architect, and develop tests for Backbone.js applications using modern testing principles and practices COMPUTERS / General bisacsh Application software / Development fast JavaScript (Computer program language) fast Web site development fast JavaScript (Computer program language) Web site development Application software Development |
title | Backbone.js testing plan, architect, and develop tests for Backbone.js applications using modern testing principles and practices |
title_auth | Backbone.js testing plan, architect, and develop tests for Backbone.js applications using modern testing principles and practices |
title_exact_search | Backbone.js testing plan, architect, and develop tests for Backbone.js applications using modern testing principles and practices |
title_full | Backbone.js testing plan, architect, and develop tests for Backbone.js applications using modern testing principles and practices Ryan Roemer |
title_fullStr | Backbone.js testing plan, architect, and develop tests for Backbone.js applications using modern testing principles and practices Ryan Roemer |
title_full_unstemmed | Backbone.js testing plan, architect, and develop tests for Backbone.js applications using modern testing principles and practices Ryan Roemer |
title_short | Backbone.js testing |
title_sort | backbone js testing plan architect and develop tests for backbone js applications using modern testing principles and practices |
title_sub | plan, architect, and develop tests for Backbone.js applications using modern testing principles and practices |
topic | COMPUTERS / General bisacsh Application software / Development fast JavaScript (Computer program language) fast Web site development fast JavaScript (Computer program language) Web site development Application software Development |
topic_facet | COMPUTERS / General Application software / Development JavaScript (Computer program language) Web site development Application software Development |
work_keys_str_mv | AT roemerryan backbonejstestingplanarchitectanddeveloptestsforbackbonejsapplicationsusingmoderntestingprinciplesandpractices |