Created
May 10, 2016 07:12
-
-
Save thbar/82d1b6e68cbbd8533286bf2175007ced to your computer and use it in GitHub Desktop.
How to "focus" (à la RSpec) on one ExUnit test
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ExUnit.configure( | |
exclude: :test, include: :focus, | |
# SNIP | |
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
@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
any way to run all tests once the tag is removed?