Skip to content

Instantly share code, notes, and snippets.

@thbar
Created May 10, 2016 07:12
Show Gist options
  • Save thbar/82d1b6e68cbbd8533286bf2175007ced to your computer and use it in GitHub Desktop.
Save thbar/82d1b6e68cbbd8533286bf2175007ced to your computer and use it in GitHub Desktop.
How to "focus" (à la RSpec) on one ExUnit test
ExUnit.configure(
exclude: :test, include: :focus,
# SNIP
)
defmodule ExperimentalTest do
use WisecashEx.ConnCase, async: true
@tag :focus
test "run this one" do
end
test "do not run this one" do
end
end
@thbar
Copy link
Author

thbar commented Jun 10, 2024

@krisleech I looked for this a while back, but didn't find a solution at that time. It would be definitely still interesting, and maybe doable today!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment