Cargando…

Learning behavior-driven development with JavaScript : create powerful yet simple-to-code BDD test suites in JavaScript using the most popular tools in the community /

This book is ideal for any JavaScript developer who is interested in producing well-tested code. If you have no prior experience with testing, Node.js, or any other tool, do not worry, as they will be explained from scratch.

Detalles Bibliográficos
Clasificación:Libro Electrónico
Autor principal: Amodeo, Enrique (Autor)
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)

MARC

LEADER 00000cam a2200000Ii 4500
001 OR_ocn906040620
003 OCoLC
005 20231017213018.0
006 m o d
007 cr unu||||||||
008 150402s2015 enka o 001 0 eng d
040 |a UMI  |b eng  |e rda  |e pn  |c UMI  |d YDXCP  |d DEBBG  |d OCLCF  |d DEBSZ  |d CEF  |d UAB  |d AU@  |d OCLCO  |d OCLCQ  |d QGK  |d OCLCO 
019 |a 905684607  |a 1259220366 
020 |a 9781784390174 
020 |a 1784390178 
020 |z 9781784392642 
020 |a 1784392642 
020 |a 9781784392642 
029 1 |a DEBBG  |b BV042682915 
029 1 |a DEBSZ  |b 44658116X 
029 1 |a GBVCP  |b 835871886 
035 |a (OCoLC)906040620  |z (OCoLC)905684607  |z (OCoLC)1259220366 
037 |a CL0500000571  |b Safari Books Online 
050 4 |a QA76.73.J39 
082 0 4 |a 005.2  |q OCoLC  |2 23/eng/20230216 
049 |a UAMI 
100 1 |a Amodeo, Enrique,  |e author. 
245 1 0 |a Learning behavior-driven development with JavaScript :  |b create powerful yet simple-to-code BDD test suites in JavaScript using the most popular tools in the community /  |c Enrique Amodeo. 
246 3 0 |a Create powerful yet simple-to-code BDD test suites in JavaScript using the most popular tools in the community 
264 1 |a Birmingham, UK :  |b Packt Publishing,  |c 2015. 
300 |a 1 online resource (1 volume) :  |b illustrations. 
336 |a text  |b txt  |2 rdacontent 
337 |a computer  |b c  |2 rdamedia 
338 |a online resource  |b cr  |2 rdacarrier 
347 |a text file 
490 1 |a Community experience distilled 
588 |a Description based on online resource; title from cover (Safari, viewed March 13, 2015). 
500 |a Includes index. 
505 0 |a Cover; Copyright; Credits; About the Author; About the Reviewers; www.PacktPub.com; Table of Contents; Preface; Chapter 1: Welcome to BDD; The test-first approach; The test-first cycle; Write a failing test; Make the test pass; Clean the code; Repeat!; Consequences of the test-first cycle; BDD versus TDD; Exploring unit testing; The structure of a test; Test doubles; What is a good test?; Summary; Chapter 2: Automating Tests with Mocha, Chai, and Sinon; Node and NPM as a development platform; Installing Node and NPM; Configuring your project with NPM; Introducing Mocha 
505 8 |a Useful options in MochaOur first test-first cycle; More expressive assertions with Chai; Working with the ""should"" interface; Red/Green/Refactor; Parameterized tests; Organizing your setup; Defining test scenarios; Test doubles with Sinon; Is it traditional TDD or BDD?; Welcome Sinon!; Integrating Sinon and Chai; Summary; Chapter 3: Writing BDD Features; Introducing myCafé; Writing features; Displaying a customer's order; Tips for writing features; Starting to code the scenarios; Testing asynchronous features; Testing a callback-based API; Testing a promise-based API 
505 8 |a Interlude: promises 101Mocha and promises; Organizing our test code; The storage object pattern; The example factory pattern; Finishing the scenario; Parameterized scenarios; Finishing our feature; Summary; Chapter 4: CucumberJS and Gherkin; Getting started with Gherkin and CucumberJS; Preparing your project; Writing your first scenario in Gherkin; Executing Gherkin; The World object pattern; Better step handlers; Better reporting; Writing advanced scenarios; Gherkin example tables; Consolidating steps; Advanced setup; Gherkin-driven example factory; Implicit versus explicit setup 
505 8 |a The Background sectionParameterized scenarios; Finishing the feature; Useful CucumberJS features; Tagging features and scenarios; Hooks; The before hook; The after hook; The around hook; Non-English Gherkin; CucumberJS or Mocha?; Summary; Chapter 5: Testing a REST Web API; The approach; A strategy to test web APIs; Mocha or CucumberJS?; The plan; Testing the GET order feature; Exploring our feature a bit; Starting, stopping, and setting up our server; Testing whether the API responds with 200 Ok; Should we use a realistic order object?; Implementing the test 
505 8 |a Testing our HAL resource for ordersThe contract with the business layer; Finishing the scenario; Testing slave resources; The order actions; Testing embedded resources; Extracting cross-cutting scenarios; Homework!; Summary; Chapter 6: Testing a UI Using WebDriverJS; Our strategy for UI testing; Choosing the right tests for the UI; The testing architecture; WebDriverJS; Finding and interacting with elements; Complex UI interaction; Injecting scripts; Command control flows; Taking screenshots; Working with several tabs and frames; Testing a rich Internet application; The setup 
520 |a This book is ideal for any JavaScript developer who is interested in producing well-tested code. If you have no prior experience with testing, Node.js, or any other tool, do not worry, as they will be explained from scratch. 
546 |a English. 
590 |a O'Reilly  |b O'Reilly Online Learning: Academic/Public Library Edition 
650 0 |a JavaScript (Computer program language) 
650 0 |a Application software  |x Development. 
650 6 |a JavaScript (Langage de programmation) 
650 6 |a Logiciels d'application  |x Développement. 
650 7 |a Application software  |x Development  |2 fast 
650 7 |a JavaScript (Computer program language)  |2 fast 
776 |z 1-78439-264-2 
776 |z 1-336-01248-X 
830 0 |a Community experience distilled. 
856 4 0 |u https://learning.oreilly.com/library/view/~/9781784392642/?ar  |z Texto completo (Requiere registro previo con correo institucional) 
938 |a YBP Library Services  |b YANK  |n 12306520 
994 |a 92  |b IZTAP