You might have a test module like this.
defmodule TestOrderTest do
test "first" do
test "second" do
And when you run it,
second runs before
In general this is fine, because every test should pass no matter which one runs first. In certain circumstances however, lets say you're working through some Exercism.io challenges, you might want them to run in order.
To do so include the configuration
Elixir.configure seed: 0
And tackle every test in the order they've been given to you!Tweet