Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Learning Yeoman
  • Table Of Contents Toc
Learning Yeoman

Learning Yeoman

By : Spratley
5 (1)
close
close
Learning Yeoman

Learning Yeoman

5 (1)
By: Spratley

Overview of this book

If you are a web developer with some experience in JavaScript and want to enter the world of modern web applications, then this book is ideal for you. Learning how to leverage the three tools (Yo, Bower, and Grunt) in the Yeoman workflow will be perfect as your next step towards building scalable, dynamic, and modern web applications for just about any platform.
Table of Contents (12 chapters)
close
close
Lock Free Chapter
1
1. Modern Workflows for Modern Webapps
11
Index

Angular generator solutions


The most common issue with Angular apps is setting up e2e testing. Well, let's cover setting up Protractor with an Angular app, so we can run e2e tests to verify that the application is functioning as it should.

Protractor e2e testing

Problem: I have an AngularJS app that was created using Yeoman and I want to add Protractor e2e testing to my project. I want to run a Grunt task that will start Protractor and execute my project's e2e test specs.

Solution: In order to properly test your AngularJS application using Protractor, you will need to perform the following steps in this order:

  1. Install protractor using npm.

  2. Install grunt-protractor-runner using npm.

  3. Configure the Grunt task.

  4. Create a Protractor configuration file.

  5. Create an e2e test spec.

  6. Start Selenium WebDriver.

  7. Start the application.

  8. Run the Grunt task.

Installing Protractor

To install Protractor, you must use npm and install it globally, as follows:

$ npm install protractor -g

Now, update the Selenium WebDriver...

Visually different images
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Learning Yeoman
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon