defmodule Mix.Tasks.EndToEnd do
  @moduledoc false
  use Mix.Task

  @shortdoc "Runs feature tests"
  def run(_) do
    compile_js()
    System.cmd(
      "mix",
      ["test", "--only", "feature_test", "--color"],
      into: IO.stream(:stdio, :line)
    )
  end

  defp compile_js do
    System.cmd("npm", ["run", "deploy", "--", "--hide-modules"], [into: IO.stream(:stdio, :line)])
  end
end

defmodule Mix.Tasks.EndToEnd do
  @moduledoc false
  use Mix.Task

  @shortdoc "Runs feature tests"
  def run(_) do
    compile_js()
    System.cmd(
      "mix",
      ["test", "test/features/", "--only", "feature_test", "--color"],
      into: IO.stream(:stdio, :line)
    )
  end

  defp compile_js do
    System.cmd("npm", ["run", "deploy", "--", "--hide-modules"], [into: IO.stream(:stdio, :line)])
  end
end

Update mix e2e task to only look at tests in test/features/
Update mix e2e task to only look at tests in test/features/

  - when solely relying on '--only feature_test', we get somewhat confusing output about 30+ skipped tests, because we're technically skipping the unit tests. By scoping the call to the directory we care about, we get less confusing output.

samdec11/remote_retro,stride-nyc/remote_retro,tnewell5/remote_retro,stride-nyc/remote_retro,tnewell5/remote_retro,stride-nyc/remote_retro