Efficient testing of Angular with Intern

By on September 22, 2017 7:37 am

Intern is an incredibly powerful and feature-rich approach to all types of JavaScript and TypeScript testing. Intern 4 is a major update refactored in TypeScript and with much improved support for modern language features and support for ESM as well as bundlers like webpack.

Can I test ________   with Intern?

Since the start of Intern, we’ve been asked if Intern can be used to test a wide variety of approaches to building JavaScript and TypeScript based applications. Regardless of the library or framework your application uses, client–side and server–side, you can test it with Intern. That said, each framework may need help to make it easier to test things.

Angular

The Angular project provides an out of the box approach to testing with some helpful guidance and utilities, but the choice of testing tools does not provide the wide range of testing features offered by Intern. So our team has created initial test helpers and a tutorial to make it easier to test modern Angular applications with Intern 4.

To start testing your Angular application with Intern 4, you should first read the general Intern 4 tutorial.

Once you’ve read through this tutorial and are familiar with the basics of Intern, you should then clone our Intern example-angular tutorial and follow the readme. The tutorial contains all of the specs from Angular’s test guide as well as some extras. Test specs have been reformatted and converted to using Intern best practices. The tutorial also references an early version of an Intern angular plugin to simplify some of the patterns followed when testing Angular applications with Intern.

Let us know if you have suggestions for how we can improve the Angular and Intern 4 testing experience!


Getting Help With Intern

Workshops Logo

An Intern workshop is a quick way to jumpstart your team’s automated testing journey. Connect with us to get training from the creators of Intern!

Support Logo

Sign up for our On-Demand Development service, to get fast and efficient solutions to all things in application development.

Let's Talk! Logo

Let’s talk about how we can help your organization improve their approach to automated testing.

Contact Us Logo

Have a question? We’re here to help! Get in touch and let’s see how we can work together.

Comments

  • Steven Kauyedauty

    Not really a how to article, but thanks for the heads up about Intern.

  • Yes, the intent was to have all of the how-to articles about Intern 4 that we create actually on the Intern 4 site, so this post was more to raise awareness and then send you to the article we authored on theintern.io and the repos we created over there! I hope that makes sense.