Chapter 15. Testing

 

This chapter covers

  • An overview of testing SPAs
  • Unit testing versus end-to-end testing
  • Testing services and value converters
  • Testing custom elements and attributes
  • End-to-end testing

Although there’s still a lot of contention about the best testing techniques or tools to use, it’s now almost universally agreed that some form of testing is a good idea. Having a suite of tests that proves your code works to specification enables you to iterate quickly with confidence that the features you add or change today won’t adversely impact what you did yesterday. And the value of having a great test suite increases as your project grows in complexity.

15.1. Testing SPAs

15.2. Get started testing with the Aurelia CLI

15.3. Testing value converters

15.4. Testing services

15.5. Testing custom elements

15.6. Testing custom attributes

15.7. End-to-end testing

Summary