rcarriga / vim-ultest

The ultimate testing plugin for (Neo)Vim
MIT License
385 stars 15 forks source link

Support Elixir controller tests #58

Closed jpserra closed 3 years ago

jpserra commented 3 years ago

if we consider this basic controller test example:

describe "index" do
  test "lists all posts", %{conn: conn} do
    conn = get(conn, Routes.post_path(conn, :index))
    assert html_response(conn, 200) =~ "List all posts"
  end
end

we will see that the pattern used for identifying elixir tests doesn't work as the regex doesn't account for the ,%{conn: conn} part.

The change in this MR should improve the experience of this plugin with Elixir.

rcarriga commented 3 years ago

This is great thank you! 😁