» Posts on testing

Are Your Unit Tests Failing for the Expected Reasons?

Written by Evan Schultz

Unit tests can be an invaluable tool in the developers toolbox. You don't need to be a strict TDD purist to make unit testing worthwhile. Once you get into the flow of writing tests, it can be rather satisfying to watch the Nyan Cat Reporter go across your screen as the number of tests passing increase. As with any other tool though, it can be...

Read More »

Testing Your Angular 2 Application: Part 2 of 2

Written by Seth Davenport

This post was last updated 03/17/2016. Please refer to our Angular 2 eBook for the most recent updates. In part 1 of this series we defined a QuoteComponent that displays a random quote on a web page. We showed how to use Angular 2's testing utilities to mock out QuoteService and test the QuoteComponent's presentation logic in isolation. In this post, I'll do...

Read More »

Testing your Angular 2 Application: Part 1 of 2

Written by Tyler Borchert

This post was last updated 03/11/2016. Please refer to our Angular 2 eBook for the most recent updates. Among the many new and exciting features of Angular 2 comes a robust and completely integrated testing module based off of the Jasmine testing framework. Using angular2/testing makes writing unit tests for Angular 2 components and services a lot easier. In this post, we'll...

Read More »

Learn How to Write Angular 2 Style Unit Tests with Angular 1.X Code

Written by Simon Ramsay

The development of Angular 2 is on its way with much talk, hype, and fanfare. Surprisingly, there is not much being said about unit testing. As a responsible developer, you have undoubtedly already written a giant unit test suite to achieve ‘near perfect’ code coverage, and I'm here to let you know, there is no need to throw that all away! While Angular 2 is...

Read More »

How to Fearlessly Iterate Your REST APIs through HTTP Endpoint Testing

Written by Seth Davenport

One of the largest process problems in building single page applications with AngularJS, React or Backbone is safely maintaining the contract between the AngularJS application and the REST API. Another issue is defining future integration contracts so the front-end team can build against mock servers and not be held up coordinating every new feature against back-end APIs. Supertest provides a key weapon for solving these...

Read More »