What type of Angular tests will give you the highest ROI?

The 3 minute guide to deciding what part of your Angular project you should be testing.

Image for post
Image for post

Components

Components are… well… components.

Services

Here’s where you’ll take an aim and make a great shot!

Assuming that your Angular app has followed general best practices…

…and uses services to handle business logic, data access, HTTP calls, and all the other spicy background stuff…

…then this is where anyone writing tests ought-a be licking their lips.

Make sure your Angular services are tested well. By focusing on this you’ll have a greater guarantee of better ROI.

Not sure how to get started? The Angular website has a great guide to get you started.

Pipes

Definitely put those custom pipes to the fire. Once again, these play an important role in business logic. Making sure they’re working properly is a great way to get a better ROI when writing tests.

Summary

So what should you test?

Image for post
Image for post

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store