Writing an Integration Test
In this lesson, you’ll learn how to write an integration test for an Ember application.
Creating a test component
Components in Ember are tested via integration, or rendering, tests. Let’s type the following command:
ember g component-test star-rating
Ember-CLI has generated the following test stub for us:
Difference between acceptance and integration test stubs
This looks really similar to the acceptance test stub. The first difference is that setupRenderingTest is imported instead of setupApplicationTest as a way to prepare the context for the appropriate test. The second ...
Access this course and 1600+ top-rated courses and projects.