59 ngAir - Angular 2 testing using Protractor 2C Karma and more with Julie Ralph

March 25, 2016

 

Angular 2 testing using Protractor, Karma and more withJulie Ralph

 

Panelists: PatrickJS, Ed Conolly

Guests: Julie Ralph

Outline

Background

Testing landscape

Firstquestion...Jasmine or Mocha? j/k

Seriously, though, give us a layout of the testinglandscape. What are the major tools/libraries involved in testing an Angular 2web app?

When do you use Karma vs Protractor

How has the landscape evolved over theyears?

What is new with the latest Karma and Protractor?

New world of JavaScript

How doyou deal with the build process and testing?

Webpackor System offer advantages for testing?

Are thereare special features in Karma or Protractor for Angular 2?

Testing as a discipline

How doyou get developers to actually write tests?

Why don’tdevelopers write tests?

How doyou maintain discipline over time?

Generalguidelines for testing to follow?

Anythoughts or experiences with BDD / CucumberJS and protractor?

Testing strategy

When doyou use unit tests vs integration tests vs e2e (and server vs browser)

MockedAPIs vs Real APIs, should my protractor tests really be e2e?

Other frameworks

What doyou think of AVA? https://github.com/sindresorhus/ava

Future

What doesthe future hold for testing?

Tips & Picks

PatrickJS

Zone.js0.6.x https://github.com/angular/zone.js/

How toTest RxJS http://staltz.com/how-to-debug-rxjs-code.html

Chaos Monkey http://techblog.netflix.com/2012/07/chaos-monkey-released-into-wild.html

Gremlins.jshttps://github.com/marmelab/gremlins.js

 

Jeff Whelpley

StraightOutta Compton

With latest TypeScript, you may not need Webpack https://medium.com/@vivainio/with-latest-typescript-you-may-not-need-webpack-417d2ef0e773#.2z0xbjndi

Ng2 testseed https://github.com/juliemr/ng2-test-seed

Web Workers and Service Works by Gleb https://www.youtube.com/watch?v=4axZ3D75Llg&list=UU_DH6Z_K_3JRgOdDnwHLrLw

 

Ed

Instanttest feedback in your IDE - http://wallabyjs.com/

ConfigurableAPI responses -  https://github.com/wongatech/angular-multimocks

AngularConnectScholarships / CFP

 

Julie

Angularmaterial is alpha: https://github.com/angular/material2

Niftyproject website from Seattle Times: http://projects.seattletimes.com/2016/elwha/

Juliepromises to update ng2-test-seed today :)

00:0000:00

Facebook Comments: