Search⌘ K
AI Features

Wrapping Up

Explore the role of acceptance tests in verifying real-time Phoenix and Elixir applications. Learn about common challenges like test speed and frontend maintenance, and discover how to balance manual and automated testing to ensure your app works reliably under varied user scenarios.

Acceptance test limitations

Acceptance tests are very powerful when used properly, but they can also lead to various problems. These problems are manageable, but they could end up taking more of our time than desired in an extensive test suite. However, the result is worth it because we can be more confident that our application works appropriately end-to-end. The two major problems affecting acceptance tests are speed and maintainability.

Acceptance tests flex the entire application stack—a browser starts up, executes tasks, navigates to one or more pages, and then shuts down. This process is more expensive than a traditional test that doesn’t leverage a browser. A large acceptance test suite could take many times longer to run than a large unit/integration test suite, so we may want to run our ...