JavaScript Testing with Jasmine

JavaScript Testing with Jasmine PDF

Author: Evan Hahn

Publisher: "O'Reilly Media, Inc."

Published: 2013-04-15

Total Pages: 51

ISBN-13: 1449356370

DOWNLOAD EBOOK →

Developers looking to keep their JavaScript code bug-free will want to unit test using Jasmine, one of the most popular unit testing frameworks around. Any project of meaningful size should be automatically tested to help catch bugs as early as possible. Jasmine, a testing framework for JavaScript, makes it easy to test JavaScript projects, from browser-based applications to Node.js. While a quick understanding of Jasmine can be gleaned from the project’s homepage, the framework has a lot of details and exciting plugins. This book explores Jasmine in a depth that can’t be found elsewhere. This book provides: Exposure to some Jasmine plugins, to extend Jasmine and allow for more functionality and more thorough testing An Understanding of Jasmine’s main features, to allow code to be automatically tested and reduce bugs An Explanation of how to get Jasmine working in different environments (in the browser, in Node.js, through Rails, et cetera), to make Jasmine easier to work with

Jasmine JavaScript Testing - Second Edition

Jasmine JavaScript Testing - Second Edition PDF

Author: Paulo Ragonha

Publisher: Packt Publishing Ltd

Published: 2015-04-24

Total Pages: 134

ISBN-13: 1785283200

DOWNLOAD EBOOK →

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.

JavaScript Unit Testing

JavaScript Unit Testing PDF

Author: H. Ahmed

Publisher: Packt Publishing

Published: 2012-11-17

Total Pages: 190

ISBN-13: 9781782160625

DOWNLOAD EBOOK →

A practical, example-driven guide to using, automating, and integrating JavaScript Unit tests for the busy and conscientious JavaScript developer striving for excellence and success. JavaScript Unit Testing is a must have guide for every web developer, designer, architect, and JavaScript coder seeking to ensure the highest quality of their web applications and JS code. Knowledge of JavaScript is assumed.

Testing Angular Applications

Testing Angular Applications PDF

Author: Corinna Cohn

Publisher: Simon and Schuster

Published: 2018-11-07

Total Pages: 329

ISBN-13: 1638355401

DOWNLOAD EBOOK →

Summary Testing Angular Applications is an example-rich, hands-on guide that gives you the real-world techniques you need to thoroughly test all parts of your Angular applications. By the end of this book, you'll be able to confidently write unit and end-to-end tests for Angular applications in TypeScript. Foreword by Brad Green, Google. Purchase of the print book includes a free eBook in PDF, Kindle, and ePub formats from Manning Publications. About the Technology Don't leave the success of your mission-critical Angular apps to chance. Proper testing improves code quality, reduces maintenance costs, and rewards you with happy users. New tools and best practices can streamline and automate all aspects of testing web apps, both in development and in production. This book gets you started. About the Book Testing Angular Applications teaches you how to make testing an essential part of your development and production processes. You'll start by setting up a simple unit testing system as you learn the fundamental practices. Then, you'll fine-tune it as you discover the best tests for Angular components, directives, pipes, services, and routing. Finally, you'll explore end-to-end testing, mastering the Protractor framework, and inserting Angular apps into your continuous integration pipeline. What's inside Getting to know TypeScript Writing and debugging unit tests Writing and debugging end-to-end tests with Protractor Building continuous integration for your entire test suite About the Reader This book is for readers with intermediate JavaScript skills. About the Author Jesse Palmer is a senior engineering manager at Handshake. Corinna Cohn is a single-page web application specialist. Mike Giambalvo and Craig Nishina are engineers at Google. Table of Contents Introduction to testing Angular applicationsPART 1 - Unit testing Creating your first tests Testing components Testing directives Testing pipes Testing services Testing the router PART 2 - End-to-end testing Getting started with Protractor Understanding timeouts Advanced Protractor topics PART 3 - Continuous integration Continuous integration Appendix A - Setting up the sample project Appendix B - Additional resources

Test-Driven JavaScript Development

Test-Driven JavaScript Development PDF

Author: Christian Johansen

Publisher: Addison-Wesley Professional

Published: 2010-09-09

Total Pages: 626

ISBN-13: 0321684052

DOWNLOAD EBOOK →

For JavaScript developers working on increasingly large and complex projects, effective automated testing is crucial to success. Test-Driven JavaScript Development is a complete, best-practice guide to agile JavaScript testing and quality assurance with the test-driven development (TDD) methodology. Leading agile JavaScript developer Christian Johansen covers all aspects of applying state-of-the-art automated testing in JavaScript environments, walking readers through the entire development lifecycle, from project launch to application deployment, and beyond. Using real-life examples driven by unit tests, Johansen shows how to use TDD to gain greater confidence in your code base, so you can fearlessly refactor and build more robust, maintainable, and reliable JavaScript code at lower cost. Throughout, he addresses crucial issues ranging from code design to performance optimization, offering realistic solutions for developers, QA specialists, and testers. Coverage includes • Understanding automated testing and TDD • Building effective automated testing workflows • Testing code for both browsers and servers (using Node.js) • Using TDD to build cleaner APIs, better modularized code, and more robust software • Writing testable code • Using test stubs and mocks to test units in isolation • Continuously improving code through refactoring • Walking through the construction and automated testing of fully functional software The accompanying Web site, tddjs.com, contains all of the book’s code listings and additional resources.

The JHipster Mini-Book

The JHipster Mini-Book PDF

Author: Matt Raible

Publisher: Lulu.com

Published: 2016-11-25

Total Pages: 174

ISBN-13: 132963814X

DOWNLOAD EBOOK →

The things you need to do to set up a new software project can be daunting. First, you have to select the back-end framework to create your API, choose your database, set up security, and choose your build tool. Then you have to choose the tools to create your front end: select a UI framework, configure a build tool, set up Sass processing, configure your browser to auto-refresh when you make changes, and configure the client and server so they work in unison. If you're building a new application using Spring Boot and Angular, you can save days by using JHipster. JHipster generates a complete and modern web app, unifying: - A high-performance and robust Java stack on the server side with Spring Boot - A sleek, modern, mobile-first front-end with Angular and Bootstrap - A robust microservice architecture with the JHipster Registry, Netflix OSS, the ELK stack, and Docker - A powerful workflow to build your application with Yeoman, Webpack, and Maven/Gradle

Building Polyfills

Building Polyfills PDF

Author: Brandon Satrom

Publisher: "O'Reilly Media, Inc."

Published: 2014-02-18

Total Pages: 170

ISBN-13: 1449370691

DOWNLOAD EBOOK →

Add custom features to browsers old and new by writing polyfill libraries, JavaScript plugins that take browsers beyond their native capabilities. In this practical fieldbook, author Brandon Satrom introduces principles and guidelines for polyfill development, and then walks you through the steps for building a complex, real-world HTML5 polyfill. You’ll also explore the future of polyfilling—or prollyfilling—that will enable you to test and work with emerging concepts, often ahead of browser vendors. By the time you finish this book, you’ll have the tools and hands-on experience you need to build reliable polyfills for today’s and tomorrow’s Web. Learn the current state of polyfills, including shims, opt-ins, and drop-ins Use principles and practices to build responsible polyfills that benefit the entire web development community Build out several features for an HTML5 Forms polyfill library Configure a build environment and run automated cross-browser testing Optimize performance, handle edge cases, and fine-tune the speed of your polyfill Get examples of prollyfilling libraries that push the boundaries of the Web Write a sample prollyfill and compare it to current polyfill builds

Test-Driven Development with Python

Test-Driven Development with Python PDF

Author: Harry Percival

Publisher: "O'Reilly Media, Inc."

Published: 2017-08-02

Total Pages: 624

ISBN-13: 1491958650

DOWNLOAD EBOOK →

By taking you through the development of a real web application from beginning to end, the second edition of this hands-on guide demonstrates the practical advantages of test-driven development (TDD) with Python. You’ll learn how to write and run tests before building each part of your app, and then develop the minimum amount of code required to pass those tests. The result? Clean code that works. In the process, you’ll learn the basics of Django, Selenium, Git, jQuery, and Mock, along with current web development techniques. If you’re ready to take your Python skills to the next level, this book—updated for Python 3.6—clearly demonstrates how TDD encourages simple designs and inspires confidence. Dive into the TDD workflow, including the unit test/code cycle and refactoring Use unit tests for classes and functions, and functional tests for user interactions within the browser Learn when and how to use mock objects, and the pros and cons of isolated vs. integrated tests Test and automate your deployments with a staging server Apply tests to the third-party plugins you integrate into your site Run tests automatically by using a Continuous Integration environment Use TDD to build a REST API with a front-end Ajax interface

Practical Test Automation

Practical Test Automation PDF

Author: Panos Matsinopoulos

Publisher: Apress

Published: 2020-09-24

Total Pages: 309

ISBN-13: 9781484261408

DOWNLOAD EBOOK →

Learn the principles behind test-driven development (TDD) and behavior-driven development (BDD) and see how Jasmine, RSpec and Cucumber can be used to your advantage. This book examines some of the leading technologies used for testing. You'll see how to use Jasmine’s features to work with a JavaScript application. You will learn how to use Mini Test and RSpec with Ruby and Rubymine. Finally, you’ll use Cucumber to develop your software using a BDD approach. Understanding test automation is a vital skill for any web developer. Practical Test Automation breaks down for you some of the important TDD and BDD technologies on the modern web. What You'll Learn Test an example JavaScript application with Jasmine Use Jasmine with JS Bin Work with Minitest for test-driven development Test an example Ruby project with RSpec Use Cucumber and Gherkin for behavior-driven development Integrate Cucumber with RSpec Who This Book Is For This book is for anyone who wants to learn test automation and more about test-driven development and behavior-driven development.

The Art of Unit Testing

The Art of Unit Testing PDF

Author: Roy Osherove

Publisher: Simon and Schuster

Published: 2013-11-24

Total Pages: 459

ISBN-13: 1638353050

DOWNLOAD EBOOK →

Summary The Art of Unit Testing, Second Edition guides you step by step from writing your first simple tests to developing robust test sets that are maintainable, readable, and trustworthy. You'll master the foundational ideas and quickly move to high-value subjects like mocks, stubs, and isolation, including frameworks such as Moq, FakeItEasy, and Typemock Isolator. You'll explore test patterns and organization, working with legacy code, and even "untestable" code. Along the way, you'll learn about integration testing and techniques and tools for testing databases and other technologies. About this Book You know you should be unit testing, so why aren't you doing it? If you're new to unit testing, if you find unit testing tedious, or if you're just not getting enough payoff for the effort you put into it, keep reading. The Art of Unit Testing, Second Edition guides you step by step from writing your first simple unit tests to building complete test sets that are maintainable, readable, and trustworthy. You'll move quickly to more complicated subjects like mocks and stubs, while learning to use isolation (mocking) frameworks like Moq, FakeItEasy, and Typemock Isolator. You'll explore test patterns and organization, refactor code applications, and learn how to test "untestable" code. Along the way, you'll learn about integration testing and techniques for testing with databases. The examples in the book use C#, but will benefit anyone using a statically typed language such as Java or C++. Purchase of the print book includes a free eBook in PDF, Kindle, and ePub formats from Manning Publications. What's Inside Create readable, maintainable, trustworthy tests Fakes, stubs, mock objects, and isolation (mocking) frameworks Simple dependency injection techniques Refactoring legacy code About the Author Roy Osherove has been coding for over 15 years, and he consults and trains teams worldwide on the gentle art of unit testing and test-driven development. His blog is at ArtOfUnitTesting.com. Table of Contents PART 1 GETTING STARTED The basics of unit testing A first unit test PART 2 CORE TECHNIQUES Using stubs to break dependencies Interaction testing using mock objects Isolation (mocking) frameworks Digging deeper into isolation frameworks PART 3 THE TEST CODE Test hierarchies and organization The pillars of good unit tests PART 4 DESIGN AND PROCESS Integrating unit testing into the organization Working with legacy code Design and testability