2 options
Jasmine JavaScript testing : test your JavaScript applications efficiently using Jasmine and React.js / Paulo Ragonha.
- Format:
- Book
- Author/Creator:
- Ragonha, Paulo, author.
- Series:
- Community experience distilled.
- Community Experience Distilled
- Language:
- English
- Subjects (All):
- Jasmine (Computer file).
- JavaScript (Computer program language)--Testing.
- JavaScript (Computer program language).
- Computer software--Testing.
- Computer software.
- Physical Description:
- 1 online resource (134 p.)
- Edition:
- 2nd ed.
- Other Title:
- Test your JavaScript applications efficiently using Jasmine and React.js
- Place of Publication:
- Birmingham, England : Packt Publishing, 2015.
- Language Note:
- English
- System Details:
- text file
- Biography/History:
- Zacharias Ragonha Paulo Vitor: Paulo Ragonha is a software engineer with over 7 years of professional experience. An advocate of the open Web, he is inspired and driven to build compelling experiences on top of this ubiquitous platform. H e loves to hack, so you will often see him wandering around in conferences or attending hackathons. His most recent professional experiences ranged from DevOps (with Chef and Docker) to moving up the stack with Node. js, Ruby, and Python and all the way toward building single-page applications (mostly with Backbone. js and "ad hoc" solutions). Passionate about automation, he sees testing as a liberating tool to enjoy the craft of writing code even more. Back in 2013, he wrote the first edition of the book Jasmine JavaScript Testing, Packt Publishing. Paulo has an amazing wife, who he loves very much. He lives in beautiful Florianopolis, a coastal city in the south of Brazil. He is a casual speaker, a biker, a runner, and a hobbyist photographer.
- Summary:
- This book is for web developers and designers who work with React.js and JavaScript and who are new to unit testing and automation. It's assumed that you have a basic knowledge of JavaScript and HTML.
- Contents:
- Cover; Copyright; Credits; About the Author; About the Reviewers; www.PacktPub.com; Table of Contents; Preface; Preface; Chapter 1: Getting Started with Jasmine; JavaScript - the bad parts; Jasmine and behavior-driven development; Downloading Jasmine; Summary; Chapter 2: Your First Spec; The investment tracker application; Jasmine basics and thinking in BDD; Setup and teardown; Nested describes; Setup and teardown; Coding a spec with shared behavior; Understanding matchers; Custom matchers; Built-in matchers; Summary; Chapter 3: Testing Frontend Code; Thinking in terms of components (Views)
- The module patternUsing HTML fixtures; Basic View coding rules; The View should encapsulate a DOM element; Integrating Views with observers; Testing Views with jQuery matchers; The toBeMatchedBy jQuery matcher; The toContainHtml jQuery matcher; The toContainElement jQuery matcher; The toHaveValue jQuery matcher; The toHaveAttr jQuery matcher; The toBeFocused jQuery matcher; The toBeDisabled jQuery matcher; More matchers; Summary; Chapter 4: Asynchronous Testing - AJAX; Acceptance criterion; Setting up the scenario; Installing Node.js; Coding the server; Running the server; Writing the spec
- Asynchronous setups and teardownsAsynchronous specs; Timeout; Summary; Chapter 5: Jasmine Spies; The ""bare"" spy; Spying on an object's functions; Testing DOM events; Summary; Chapter 6: Light Speed Unit Testing; Jasmine stubs; Jasmine Ajax; Installing the plugin; A fake XMLHttpRequest; Summary; Chapter 7: Testing React Applications; Project setup; Our first React component; The Virtual DOM; JSX; Using JSX with Jasmine; Component attributes (props); Component events; Component state; Component life cycle; Composing components; Summary; Chapter 8: Build Automation; Module bundler - webpack
- Module definitionWebpack project setup; Managing dependencies with NPM; Webpack configuration; The spec runner; Testing a module; Test runner: Karma; Quick feedback loop; Watch and run the tests; Watch and update the browser; Optimizing for production; Static code analysis: JSHint; Continuous integration - Travis-CI; Adding a project to Travis-CI; Project setup; Summary; Index
- Notes:
- Includes index.
- Description based on online resource; title from PDF title page (ebrary, viewed May 15, 2015).
- OCLC:
- 909284773
The Penn Libraries is committed to describing library materials using current, accurate, and responsible language. If you discover outdated or inaccurate language, please fill out this feedback form to report it and suggest alternative language.