Categories
Ebooks
-
Business and economy
- Bitcoin
- Businesswoman
- Coaching
- Controlling
- E-business
- Economy
- Finances
- Stocks and investments
- Personal competence
- Computer in the office
- Communication and negotiation
- Small company
- Marketing
- Motivation
- Multimedia trainings
- Real estate
- Persuasion and NLP
- Taxes
- Social policy
- Guides
- Presentations
- Leadership
- Public Relation
- Reports, analyses
- Secret
- Social Media
- Sales
- Start-up
- Your career
- Management
- Project management
- Human Resources
-
For children
-
For youth
-
Education
-
Encyclopedias, dictionaries
-
E-press
- Architektura i wnętrza
- Biznes i Ekonomia
- Home and garden
- E-business
- Finances
- Personal finance
- Business
- Photography
- Computer science
- HR & Payroll
- Computers, Excel
- Accounts
- Culture and literature
- Scientific and academic
- Environmental protection
- Opinion-forming
- Education
- Taxes
- Travelling
- Psychology
- Religion
- Agriculture
- Book and press market
- Transport and Spedition
- Healthand beauty
-
History
-
Computer science
- Office applications
- Data bases
- Bioinformatics
- IT business
- CAD/CAM
- Digital Lifestyle
- DTP
- Electronics
- Digital photography
- Computer graphics
- Games
- Hacking
- Hardware
- IT w ekonomii
- Scientific software package
- School textbooks
- Computer basics
- Programming
- Mobile programming
- Internet servers
- Computer networks
- Start-up
- Operational systems
- Artificial intelligence
- Technology for children
- Webmastering
-
Other
-
Foreign languages
-
Culture and art
-
School reading books
-
Literature
- Antology
- Ballade
- Biographies and autobiographies
- For adults
- Dramas
- Diaries, memoirs, letters
- Epic, epopee
- Essay
- Fantasy and science fiction
- Feuilletons
- Work of fiction
- Humour and satire
- Other
- Classical
- Crime fiction
- Non-fiction
- Fiction
- Mity i legendy
- Nobelists
- Novellas
- Moral
- Okultyzm i magia
- Short stories
- Memoirs
- Travelling
- Narrative poetry
- Poetry
- Politics
- Popular science
- Novel
- Historical novel
- Prose
- Adventure
- Journalism, publicism
- Reportage novels
- Romans i literatura obyczajowa
- Sensational
- Thriller, Horror
- Interviews and memoirs
-
Natural sciences
-
Social sciences
-
School textbooks
-
Popular science and academic
- Archeology
- Bibliotekoznawstwo
- Cinema studies
- Philology
- Polish philology
- Philosophy
- Finanse i bankowość
- Geography
- Economy
- Trade. World economy
- History and archeology
- History of art and architecture
- Cultural studies
- Linguistics
- Literary studies
- Logistics
- Maths
- Medicine
- Humanities
- Pedagogy
- Educational aids
- Popular science
- Other
- Psychology
- Sociology
- Theatre studies
- Theology
- Economic theories and teachings
- Transport i spedycja
- Physical education
- Zarządzanie i marketing
-
Guides
-
Game guides
-
Professional and specialist guides
-
Law
- Health and Safety
- History
- Road Code. Driving license
- Law studies
- Healthcare
- General. Compendium of knowledge
- Academic textbooks
- Other
- Construction and local law
- Civil law
- Financial law
- Economic law
- Economic and trade law
- Criminal law
- Criminal law. Criminal offenses. Criminology
- International law
- International law
- Health care law
- Educational law
- Tax law
- Labor and social security law
- Public, constitutional and administrative law
- Family and Guardianship Code
- agricultural law
- Social law, labour law
- European Union law
- Industry
- Agricultural and environmental
- Dictionaries and encyclopedia
- Public procurement
- Management
-
Tourist guides and travel
- Africa
- Albums
- Southern America
- North and Central America
- Australia, New Zealand, Oceania
- Austria
- Asia
- Balkans
- Middle East
- Bulgary
- China
- Croatia
- The Czech Republic
- Denmark
- Egipt
- Estonia
- Europe
- France
- Mountains
- Greece
- Spain
- Holand
- Iceland
- Lithuania
- Latvia
- Mapy, Plany miast, Atlasy
- Mini travel guides
- Germany
- Norway
- Active travelling
- Poland
- Portugal
- Other
- Russia
- Romania
- Slovakia
- Slovenia
- Switzerland
- Sweden
- World
- Turkey
- Ukraine
- Hungary
- Great Britain
- Italy
-
Psychology
- Philosophy of life
- Kompetencje psychospołeczne
- Interpersonal communication
- Mindfulness
- General
- Persuasion and NLP
- Academic psychology
- Psychology of soul and mind
- Work psychology
- Relacje i związki
- Parenting and children psychology
- Problem solving
- Intellectual growth
- Secret
- Sexapeal
- Seduction
- Appearance and image
- Philosophy of life
-
Religion
-
Sport, fitness, diets
-
Technology and mechanics
Audiobooks
-
Business and economy
- Bitcoin
- Businesswoman
- Coaching
- Controlling
- E-business
- Economy
- Finances
- Stocks and investments
- Personal competence
- Communication and negotiation
- Small company
- Marketing
- Motivation
- Real estate
- Persuasion and NLP
- Taxes
- Guides
- Presentations
- Leadership
- Public Relation
- Secret
- Social Media
- Sales
- Start-up
- Your career
- Management
- Project management
- Human Resources
-
For children
-
For youth
-
Education
-
Encyclopedias, dictionaries
-
History
-
Computer science
-
Other
-
Foreign languages
-
Culture and art
-
School reading books
-
Literature
- Antology
- Ballade
- Biographies and autobiographies
- For adults
- Dramas
- Diaries, memoirs, letters
- Epic, epopee
- Essay
- Fantasy and science fiction
- Feuilletons
- Work of fiction
- Humour and satire
- Other
- Classical
- Crime fiction
- Non-fiction
- Fiction
- Mity i legendy
- Nobelists
- Novellas
- Moral
- Okultyzm i magia
- Short stories
- Memoirs
- Travelling
- Poetry
- Politics
- Popular science
- Novel
- Historical novel
- Prose
- Adventure
- Journalism, publicism
- Reportage novels
- Romans i literatura obyczajowa
- Sensational
- Thriller, Horror
- Interviews and memoirs
-
Natural sciences
-
Social sciences
-
Popular science and academic
-
Guides
-
Professional and specialist guides
-
Law
-
Tourist guides and travel
-
Psychology
- Philosophy of life
- Interpersonal communication
- Mindfulness
- General
- Persuasion and NLP
- Academic psychology
- Psychology of soul and mind
- Work psychology
- Relacje i związki
- Parenting and children psychology
- Problem solving
- Intellectual growth
- Secret
- Sexapeal
- Seduction
- Appearance and image
- Philosophy of life
-
Religion
-
Sport, fitness, diets
-
Technology and mechanics
Videocourses
-
Data bases
-
Big Data
-
Biznes, ekonomia i marketing
-
Cybersecurity
-
Data Science
-
DevOps
-
For children
-
Electronics
-
Graphics/Video/CAX
-
Games
-
Microsoft Office
-
Development tools
-
Programming
-
Personal growth
-
Computer networks
-
Operational systems
-
Software testing
-
Mobile devices
-
UX/UI
-
Web development
-
Management
Podcasts
- Ebooks
- Programming
- Software testing
- Backbone.js Testing
E-book details
Log in, If you're interested in the contents of the item.
- Backbone.js Testing
- Table of Contents
- Backbone.js Testing
- Credits
- About the Author
- About the Reviewers
- www.PacktPub.com
- Support files, eBooks, discount offers and more
- Why Subscribe?
- Free Access for Packt account holders
- Support files, eBooks, discount offers and more
- Preface
- What this book covers
- Who this book is for
- Conventions
- Reader feedback
- Customer support
- Downloading the example code
- Errata
- Piracy
- Questions
- 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
- 2. Creating a Backbone.js Application Test Plan
- A Backbone.js refresher
- Selecting a Backbone.js application to test
- Getting acquainted with the Notes application
- The 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
- 3. Test Assertions, Specs, and Suites
- Choosing a test style that fits
- Mocha test interfaces
- Chai assertion styles
- Trying 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 tests
- Testing 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
- Choosing a test style that fits
- 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 API
- The spy API
- The spy call API
- Spying on functions with Sinon.JS
- 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
- The Notes menu bar view
- Summary
- 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
- Deciding when to mock
- The mock API
- Testing Backbone.js components with stubs and mocks
- Ensuring stubs and mocks are actually bound
- The Notes list item view
- The list item view
- Testing the list item view
- The Notes application router
- Running the view and router tests
- Finding the rest of the Notes application components
- A few more Sinon.JS test helpers
- Fake timers
- Fake servers
- The fake server API
- Faking the remote backend in a Backbone.js application
- Summary
- Replacing method behaviors with Sinon.JS stubs
- 6. Automated Web Testing
- The world of testing beyond humans and browsers
- Continuous integration
- Continuous deployment
- Other scenarios
- Automating browser environments
- Remote controlled web browsers
- Simulated browser environments
- Headless web browsers
- Multiple environment aggregators
- Headless testing with PhantomJS
- Installing PhantomJS and the supporting tools
- Running Backbone.js tests with PhantomJS
- Automating tests in the code samples
- Parting thoughts, next steps, and future ideas
- Summary
- The world of testing beyond humans and browsers
- Index
- Title: Backbone.js Testing
- Author: Ryan Glenn Roemer
- Original title: Backbone.js Testing.
- ISBN: 9781782165255, 9781782165255
- Date of issue: 2013-07-12
- Format: Ebook
- Item ID: e_3cdt
- Publisher: Packt Publishing