Component Testing (DRAFT) 6.0
- Dart’s standard testing package, which is similar to most
unit testing frameworks, including Jasmine for
then writing tests using
package:testwill have a familiar feel. Testing basics is covered in Writing component tests: Basics. For in-depth coverage of the package capabilities, see the
- A complementary package that provides a means of interacting with Angular components created as test fixtures.
- A library for creating
Not all component tests require mock objects, but in later sections, you’ll learn
the fundamentals of using
package:mockitoas needed. For further details, see the package documentation.
The angular_test package is suitable for testing either a single component, or a small group of related components. This package is not meant to test an entire app. For that, you need to write end-to-end tests.
This guide covers the following component testing topics:
- Component testing
- Running component tests
- Writing component tests