Acceptance Testing

Learn about acceptance testing and how to use it.

Overview

Acceptance tests are also known as application tests. They test the entire workflow of the application. We can validate the features from an end-user perspective. Acceptance tests create an instance of the Ember application.

Generating acceptance tests

We can generate acceptance tests using the following Ember CLI command:

ember g acceptance-test <test-name>

This command generates the boilerplate of the acceptance test in the tests/acceptance/ directory. Let’s create an acceptance test for our e-commerce application and name it userside to test the initial flow of our application:

Get hands-on with 1400+ tech skills courses.