Ember Exam

Speed up your test suite with Ember Exam

Summary

Split command:

ember exam -s --split=4 --parallel

Random command:

ember exam -s --random

Transcript

Ember Exam is an addon that helps you run your test suite. It speeds up your test runs, and also helps you find brittle order-dependent tests, the kind that sometimes pass and sometimes fail.

After installing the addon, you use it by replacing the ember test command with ember exam. Using ember exam lets you use all of the existing test flags, but gives you access to some new features.

The split command speeds up your test suite by letting you run multiple groups of tests in parallel. For example, this command effectively spins up four browsers that each run one fourth of your test suite. Teams using test splitting have seen their total test runtime fall by 50% or more!

The random command helps you find brittle tests by shifting the order in which your suite is run. It tags each ordering with a seed value, so if you find a problematic test run, you can reproduce it with ease.

If you're frustrated by a slow test suite or brittle, order-dependent tests, be sure to check out Ember Exam today.

👋 Hey there, Ember dev!

We hope you enjoyed this free video 🙂

If you like it and want to keep learning with us, we've written a free 6-lesson email course about the fundamental patterns of modern component design in Ember.

To get the first lesson now, enter your best email address below:

You can also check out more details about the course by clicking here.

Questions?

Send us a tweet:

Or ask us in Inside EmberMap, our private Slack workspace for subscribers.