Skip to content

Instantly share code, notes, and snippets.

@varshneydevansh
Created June 20, 2023 12:02
Show Gist options
  • Save varshneydevansh/395a73cdd10885520d05f5ffdbacb213 to your computer and use it in GitHub Desktop.
Save varshneydevansh/395a73cdd10885520d05f5ffdbacb213 to your computer and use it in GitHub Desktop.
  phoenix   main ≡    mix test
==> mime
Compiling 1 file (.ex)
Generated mime app
==> phoenix_pubsub
Compiling 11 files (.ex)
Generated phoenix_pubsub app
==> plug_crypto
Compiling 5 files (.ex)
Generated plug_crypto app
==> plug
Compiling 1 file (.erl)
Compiling 40 files (.ex)
Generated plug app
==> phoenix_html
Compiling 9 files (.ex)
Generated phoenix_html app
==> phoenix_template
Compiling 4 files (.ex)
Generated phoenix_template app
==> phoenix_view
Compiling 1 file (.ex)
Generated phoenix_view app
==> phx_new
Compiling 7 files (.ex)
Generated phx_new app
==> websock
Compiling 1 file (.ex)
Generated websock app
===> Analyzing applications...
===> Compiling cowlib
===> Analyzing applications...
===> Compiling cowboy
===> Analyzing applications...
===> Compiling cowboy_telemetry
==> plug_cowboy
Compiling 5 files (.ex)
Generated plug_cowboy app
==> websock_adapter
Compiling 2 files (.ex)
Generated websock_adapter app
==> phoenix
Compiling 21 files (.ex)
Generated phoenix app
....
1) test test_config_inject/2 injects after "use Mix.Config" when hashing_library is pbkdf2 (Mix.Tasks.Phx.Gen.Auth.InjectorTest)
test/mix/tasks/phx.gen.auth/injector_test.exs:302
Assertion with == failed
code: assert injected ==
"use Mix.Config\r\n\r\n# Only in tests, remove the complexity from the password hashing algorithm\r\nconfig :pbkdf2_elixir, :rounds, 1\r\n"
left: "use Mix.Config\r\n\r\n# Only in tests, remove the complexity from the password hashing algorithm\r\r\nconfig :pbkdf2_elixir, :rounds, 1\r\n"
right: "use Mix.Config\r\n\r\n# Only in tests, remove the complexity from the password hashing algorithm\r\nconfig :pbkdf2_elixir, :rounds, 1\r\n"
stacktrace:
test/mix/tasks/phx.gen.auth/injector_test.exs:311: (test)
.
2) test test_config_inject/2 injects after "use Mix.Config" when hashing_library is bcrypt (Mix.Tasks.Phx.Gen.Auth.InjectorTest)
test/mix/tasks/phx.gen.auth/injector_test.exs:284
Assertion with == failed
code: assert injected ==
"use Mix.Config\r\n\r\n# Only in tests, remove the complexity from the password hashing algorithm\r\nconfig :bcrypt_elixir, :log_rounds, 1\r\n"
left: "use Mix.Config\r\n\r\n# Only in tests, remove the complexity from the password hashing algorithm\r\r\nconfig :bcrypt_elixir, :log_rounds, 1\r\n"
right: "use Mix.Config\r\n\r\n# Only in tests, remove the complexity from the password hashing algorithm\r\nconfig :bcrypt_elixir, :log_rounds, 1\r\n"
stacktrace:
test/mix/tasks/phx.gen.auth/injector_test.exs:293: (test)
.......
3) test app_layout_menu_inject/2 injects render user_menu after the opening body tag (Mix.Tasks.Phx.Gen.Auth.InjectorTest)
test/mix/tasks/phx.gen.auth/injector_test.exs:811
Assertion with == failed
code: assert template_str ==
"<!DOCTYPE html>\r\n<html lang=\"en\">\r\n <head>\r\n <title>Demo · Phoenix Framework</title>\r\n </head>\r\n <body>\r\n <ul class=\"relative z-10 flex items-center gap-4 px-4 sm:px-6 lg:px-8 justify-end\">\r\n <%= if @current_user do %>\r\n <li class=\"text-[0.8125rem] leading-6 text-zinc-900\">\r\n <%= @current_user.email %>\r\n </li>\r\n <li>\r\n <.link\r\n href={~p\"/users/settings\"}\r\n class=\"text-[0.8125rem] leading-6 text-zinc-900 font-semibold hover:text-zinc-700\"\r\n >\r\n Settings\r\n </.link>\r\n </li>\r\n <li>\r\n <.link\r\n href={~p\"/users/log_out\"}\r\n method=\"delete\"\r\n class=\"text-[0.8125rem] leading-6 text-zinc-900 font-semibold hover:text-zinc-700\"\r\n >\r\n Log out\r\n </.link>\r\n </li>\r\n <% else %>\r\n <li>\r\n <.link\r\n href={~p\"/users/register\"}\r\n class=\"text-[0.8125rem] leading-6 text-zinc-900 font-semibold hover:text-zinc-700\"\r\n >\r\n Register\r\n </.link>\r\n </li>\r\n <li>\r\n <.link\r\n href={~p\"/users/log_in\"}\r\n class=\"text-[0.8125rem] leading-6 text-zinc-900 font-semibold hover:text-zinc-700\"\r\n >\r\n Log in\r\n </.link>\r\n </li>\r\n <% end %>\r\n </ul>\r\n <main class=\"container\">\r\n <p class=\"alert alert-info\" role=\"alert\"><%= Phoenix.Flash.get(@conn, :info) %></p>\r\n <p class=\"alert alert-danger\" role=\"alert\"><%= Phoenix.Flash.get(@conn, :error) %></p>\r\n <%= @inner_content %>\r\n </main>\r\n </body>\r\n</html>\r\n"
left: "<!DOCTYPE html>\r\n<html lang=\"en\">\r\n <head>\r\n <title>Demo · Phoenix Framework</title>\r\n </head>\r\n <body>\r\n <ul class=\"relative z-10 flex items-center gap-4 px-4 sm:px-6 lg:px-8 justify-end\">\r\r\n <%= if @current_user do %>\r\r\n <li class=\"text-[0.8125rem] leading-6 text-zinc-900\">\r\r\n <%= @current_user.email %>\r\r\n </li>\r\r\n <li>\r\r\n <.link\r\r\n href={~p\"/users/settings\"}\r\r\n class=\"text-[0.8125rem] leading-6 text-zinc-900 font-semibold hover:text-zinc-700\"\r\r\n >\r\r\n Settings\r\r\n </.link>\r\r\n </li>\r\r\n <li>\r\r\n <.link\r\r\n href={~p\"/users/log_out\"}\r\r\n method=\"delete\"\r\r\n class=\"text-[0.8125rem] leading-6 text-zinc-900 font-semibold hover:text-zinc-700\"\r\r\n >\r\r\n Log out\r\r\n </.link>\r\r\n </li>\r\r\n <% else %>\r\r\n <li>\r\r\n <.link\r\r\n href={~p\"/users/register\"}\r\r\n class=\"text-[0.8125rem] leading-6 text-zinc-900 font-semibold hover:text-zinc-700\"\r\r\n >\r\r\n Register\r\r\n </.link>\r\r\n </li>\r\r\n <li>\r\r\n <.link\r\r\n href={~p\"/users/log_in\"}\r\r\n class=\"text-[0.8125rem] leading-6 text-zinc-900 font-semibold hover:text-zinc-700\"\r\r\n >\r\r\n Log in\r\r\n </.link>\r\r\n </li>\r\r\n <% end %>\r\r\n </ul>\r\n <main class=\"container\">\r\n <p class=\"alert alert-info\" role=\"alert\"><%= Phoenix.Flash.get(@conn, :info) %></p>\r\n <p class=\"alert alert-danger\" role=\"alert\"><%= Phoenix.Flash.get(@conn, :error) %></p>\r\n <%= @inner_content %>\r\n </main>\r\n </body>\r\n</html>\r\n"
right: "<!DOCTYPE html>\r\n<html lang=\"en\">\r\n <head>\r\n <title>Demo · Phoenix Framework</title>\r\n </head>\r\n <body>\r\n <ul class=\"relative z-10 flex items-center gap-4 px-4 sm:px-6 lg:px-8 justify-end\">\r\n <%= if @current_user do %>\r\n <li class=\"text-[0.8125rem] leading-6 text-zinc-900\">\r\n <%= @current_user.email %>\r\n </li>\r\n <li>\r\n <.link\r\n href={~p\"/users/settings\"}\r\n class=\"text-[0.8125rem] leading-6 text-zinc-900 font-semibold hover:text-zinc-700\"\r\n >\r\n Settings\r\n </.link>\r\n </li>\r\n <li>\r\n <.link\r\n href={~p\"/users/log_out\"}\r\n method=\"delete\"\r\n class=\"text-[0.8125rem] leading-6 text-zinc-900 font-semibold hover:text-zinc-700\"\r\n >\r\n Log out\r\n </.link>\r\n </li>\r\n <% else %>\r\n <li>\r\n <.link\r\n href={~p\"/users/register\"}\r\n class=\"text-[0.8125rem] leading-6 text-zinc-900 font-semibold hover:text-zinc-700\"\r\n >\r\n Register\r\n </.link>\r\n </li>\r\n <li>\r\n <.link\r\n href={~p\"/users/log_in\"}\r\n class=\"text-[0.8125rem] leading-6 text-zinc-900 font-semibold hover:text-zinc-700\"\r\n >\r\n Log in\r\n </.link>\r\n </li>\r\n <% end %>\r\n </ul>\r\n <main class=\"container\">\r\n <p class=\"alert alert-info\" role=\"alert\"><%= Phoenix.Flash.get(@conn, :info) %></p>\r\n <p class=\"alert alert-danger\" role=\"alert\"><%= Phoenix.Flash.get(@conn, :error) %></p>\r\n <%= @inner_content %>\r\n </main>\r\n </body>\r\n</html>\r\n"
stacktrace:
test/mix/tasks/phx.gen.auth/injector_test.exs:832: (test)
.
4) test inject_unless_contains/3 injects when code doesn't already contain code_to_inject (Mix.Tasks.Phx.Gen.Auth.InjectorTest)
test/mix/tasks/phx.gen.auth/injector_test.exs:219
Assertion with == failed
code: assert new_code ==
"<html>\r\n <body>\r\n <.user_menu current_user={@current_user} />\r\n <h1>My App</h1>\r\n </body>\r\n</html>\r\n"
left: "<html>\r\n <body>\n <.user_menu current_user={@current_user} />\r\n <h1>My App</h1>\r\n </body>\r\n</html>\r\n"
right: "<html>\r\n <body>\r\n <.user_menu current_user={@current_user} />\r\n <h1>My App</h1>\r\n </body>\r\n</html>\r\n"
stacktrace:
test/mix/tasks/phx.gen.auth/injector_test.exs:237: (test)
....
5) test app_layout_menu_inject/2 injects user menu at the bottom of nav section when it exists with windows line endings (Mix.Tasks.Phx.Gen.Auth.InjectorTest)
test/mix/tasks/phx.gen.auth/injector_test.exs:717
Assertion with == failed
code: assert template_str ==
"<!DOCTYPE html>\r\r\n<html lang=\"en\">\r\r\n <head>\r\r\n <title>Demo · Phoenix Framework</title>\r\r\n </head>\r\r\n <body>\r\r\n <header>\r\r\n <section class=\"container\">\r\r\n <nav>\r\r\n <ul>\r\r\n <li><a href=\"https://hexdocs.pm/phoenix/overview.html\">Get Started</a></li>\r\r\n <%= if function_exported?(Routes, :live_dashboard_path, 2) do %>\r\r\n <li><.link href={Routes.live_dashboard_path(@conn, :home)}>LiveDashboard</.link></li>\r\r\n <% end %>\r\r\n </ul>\r\r\n <ul class=\"relative z-10 flex items-center gap-4 px-4 sm:px-6 lg:px-8 justify-end\">\r\r\n <%= if @current_user do %>\r\r\n <li class=\"text-[0.8125rem] leading-6 text-zinc-900\">\r\r\n <%= @current_user.email %>\r\r\n </li>\r\r\n <li>\r\r\n <.link\r\r\n href={~p\"/users/settings\"}\r\r\n class=\"text-[0.8125rem] leading-6 text-zinc-900 font-semibold hover:text-zinc-700\"\r\r\n >\r\r\n Settings\r\r\n </.link>\r\r\n </li>\r\r\n <li>\r\r\n <.link\r\r\n href={~p\"/users/log_out\"}\r\r\n method=\"delete\"\r\r\n class=\"text-[0.8125rem] leading-6 text-zinc-900 font-semibold hover:text-zinc-700\"\r\r\n >\r\r\n Log out\r\r\n </.link>\r\r\n </li>\r\r\n <% else %>\r\r\n <li>\r\r\n <.link\r\r\n href={~p\"/users/register\"}\r\r\n class=\"text-[0.8125rem] leading-6 text-zinc-900 font-semibold hover:text-zinc-700\"\r\r\n >\r\r\n Register\r\r\n </.link>\r\r\n </li>\r\r\n <li>\r\r\n <.link\r\r\n href={~p\"/users/log_in\"}\r\r\n class=\"text-[0.8125rem] leading-6 text-zinc-900 font-semibold hover:text-zinc-700\"\r\r\n >\r\r\n Log in\r\r\n </.link>\r\r\n </li>\r\r\n <% end %>\r\r\n </ul>\r\r\n </nav>\r\r\n </section>\r\r\n </header>\r\r\n </body>\r\r\n</html>\r\r\n"
left: "<!DOCTYPE html>\r\r\n<html lang=\"en\">\r\r\n <head>\r\r\n <title>Demo · Phoenix Framework</title>\r\r\n </head>\r\r\n <body>\r\r\n <header>\r\r\n <section class=\"container\">\r\r\n <nav>\r\r\n <ul>\r\r\n <li><a href=\"https://hexdocs.pm/phoenix/overview.html\">Get Started</a></li>\r\r\n <%= if function_exported?(Routes, :live_dashboard_path, 2) do %>\r\r\n <li><.link href={Routes.live_dashboard_path(@conn, :home)}>LiveDashboard</.link></li>\r\r\n <% end %>\r\r\n </ul>\n<ul class=\"relative z-10 flex items-center gap-4 px-4 sm:px-6 lg:px-8 justify-end\">\r\n <%= if @current_user do %>\r\n <li class=\"text-[0.8125rem] leading-6 text-zinc-900\">\r\n <%= @current_user.email %>\r\n </li>\r\n <li>\r\n <.link\r\n href={~p\"/users/settings\"}\r\n class=\"text-[0.8125rem] leading-6 text-zinc-900 font-semibold hover:text-zinc-700\"\r\n >\r\n Settings\r\n </.link>\r\n </li>\r\n <li>\r\n <.link\r\n href={~p\"/users/log_out\"}\r\n method=\"delete\"\r\n class=\"text-[0.8125rem] leading-6 text-zinc-900 font-semibold hover:text-zinc-700\"\r\n >\r\n Log out\r\n </.link>\r\n </li>\r\n <% else %>\r\n <li>\r\n <.link\r\n href={~p\"/users/register\"}\r\n class=\"text-[0.8125rem] leading-6 text-zinc-900 font-semibold hover:text-zinc-700\"\r\n >\r\n Register\r\n </.link>\r\n </li>\r\n <li>\r\n <.link\r\n href={~p\"/users/log_in\"}\r\n class=\"text-[0.8125rem] leading-6 text-zinc-900 font-semibold hover:text-zinc-700\"\r\n >\r\n Log in\r\n </.link>\r\n </li>\r\n <% end %>\r\n</ul>\r\r\n </nav>\r\r\n </section>\r\r\n </header>\r\r\n </body>\r\r\n</html>\r\r\n"
right: "<!DOCTYPE html>\r\r\n<html lang=\"en\">\r\r\n <head>\r\r\n <title>Demo · Phoenix Framework</title>\r\r\n </head>\r\r\n <body>\r\r\n <header>\r\r\n <section class=\"container\">\r\r\n <nav>\r\r\n <ul>\r\r\n <li><a href=\"https://hexdocs.pm/phoenix/overview.html\">Get Started</a></li>\r\r\n <%= if function_exported?(Routes, :live_dashboard_path, 2) do %>\r\r\n <li><.link href={Routes.live_dashboard_path(@conn, :home)}>LiveDashboard</.link></li>\r\r\n <% end %>\r\r\n </ul>\r\r\n <ul class=\"relative z-10 flex items-center gap-4 px-4 sm:px-6 lg:px-8 justify-end\">\r\r\n <%= if @current_user do %>\r\r\n <li class=\"text-[0.8125rem] leading-6 text-zinc-900\">\r\r\n <%= @current_user.email %>\r\r\n
</li>\r\r\n <li>\r\r\n <.link\r\r\n href={~p\"/users/settings\"}\r\r\n class=\"text-[0.8125rem] leading-6 text-zinc-900 font-semibold hover:text-zinc-700\"\r\r\n >\r\r\n Settings\r\r\n </.link>\r\r\n </li>\r\r\n <li>\r\r\n <.link\r\r\n href={~p\"/users/log_out\"}\r\r\n method=\"delete\"\r\r\n class=\"text-[0.8125rem] leading-6 text-zinc-900 font-semibold hover:text-zinc-700\"\r\r\n >\r\r\n Log out\r\r\n </.link>\r\r\n
</li>\r\r\n <% else %>\r\r\n <li>\r\r\n <.link\r\r\n href={~p\"/users/register\"}\r\r\n class=\"text-[0.8125rem] leading-6 text-zinc-900 font-semibold hover:text-zinc-700\"\r\r\n >\r\r\n Register\r\r\n </.link>\r\r\n </li>\r\r\n <li>\r\r\n <.link\r\r\n href={~p\"/users/log_in\"}\r\r\n class=\"text-[0.8125rem] leading-6 text-zinc-900 font-semibold hover:text-zinc-700\"\r\r\n >\r\r\n Log in\r\r\n </.link>\r\r\n </li>\r\r\n <% end %>\r\r\n </ul>\r\r\n </nav>\r\r\n </section>\r\r\n </header>\r\r\n </body>\r\r\n</html>\r\r\n"
stacktrace:
test/mix/tasks/phx.gen.auth/injector_test.exs:745: (test)
6) test test_config_inject/2 injects after "import Config" when there is existing content (Mix.Tasks.Phx.Gen.Auth.InjectorTest)
test/mix/tasks/phx.gen.auth/injector_test.exs:362
Assertion with == failed
code: assert injected ==
"import Config\r\n\r\n# Only in tests, remove the complexity from the password hashing algorithm\r\nconfig :bcrypt_elixir, :log_rounds, 1\r\n\r\n# Print only warnings and errors during test\r\nconfig :logger, level: :warning\r\n"
left: "import Config\r\n\r\n# Only in tests, remove the complexity from the password hashing algorithm\r\r\nconfig :bcrypt_elixir, :log_rounds, 1\r\n\r\n# Print only warnings and errors during test\r\nconfig :logger, level: :warning\r\n"
right: "import Config\r\n\r\n# Only in tests, remove the complexity from the password hashing algorithm\r\nconfig :bcrypt_elixir, :log_rounds, 1\r\n\r\n# Print only warnings and errors during test\r\nconfig :logger, level: :warning\r\n"
stacktrace:
test/mix/tasks/phx.gen.auth/injector_test.exs:374: (test)
.
7) test test_config_inject/2 injects after "use Mix.Config" when there is existing content (Mix.Tasks.Phx.Gen.Auth.InjectorTest)
test/mix/tasks/phx.gen.auth/injector_test.exs:338
Assertion with == failed
code: assert injected ==
"use Mix.Config\r\n\r\n# Only in tests, remove the complexity from the password hashing algorithm\r\nconfig :bcrypt_elixir, :log_rounds, 1\r\n\r\n# Print only warnings and errors during test\r\nconfig :logger, level: :warning\r\n"
left: "use Mix.Config\r\n\r\n# Only in tests, remove the complexity from the password hashing algorithm\r\r\nconfig :bcrypt_elixir, :log_rounds, 1\r\n\r\n# Print only warnings and errors during test\r\nconfig :logger, level: :warning\r\n"
right: "use Mix.Config\r\n\r\n# Only in tests, remove the complexity from the password hashing algorithm\r\nconfig :bcrypt_elixir, :log_rounds, 1\r\n\r\n# Print only warnings and errors during test\r\nconfig :logger, level: :warning\r\n"
stacktrace:
test/mix/tasks/phx.gen.auth/injector_test.exs:350: (test)
.
8) test test_config_inject/2 injects when there are windows line endings (Mix.Tasks.Phx.Gen.Auth.InjectorTest)
test/mix/tasks/phx.gen.auth/injector_test.exs:386
** (MatchError) no match of right hand side value: {:error, :unable_to_inject}
code: {:ok, injected} = Injector.test_config_inject(input, hashing_library)
stacktrace:
test/mix/tasks/phx.gen.auth/injector_test.exs:396: (test)
9) test test_config_inject/2 returns :already_injected when config is already found in file (Mix.Tasks.Phx.Gen.Auth.InjectorTest)
test/mix/tasks/phx.gen.auth/injector_test.exs:410
match (=) failed
code: assert :already_injected = Injector.test_config_inject(input, hashing_library)
left: :already_injected
right: {:ok,
"import Config\r\n\r\n# Only in tests, remove the complexity from the password hashing algorithm\r\r\nconfig :bcrypt_elixir, :log_rounds, 1\r\n\r\n# Print only warnings and errors during test\r\nconfig :logger, level: :warning\r\n\r\n# Only in tests, remove the complexity from the password hashing algorithm\r\nconfig :bcrypt_elixir, :log_rounds, 1\r\n\r\n"}
stacktrace:
test/mix/tasks/phx.gen.auth/injector_test.exs:424: (test)
...
10) test inject_before_final_end/2 injects code when not previously injected (Mix.Tasks.Phx.Gen.Auth.InjectorTest)
test/mix/tasks/phx.gen.auth/injector_test.exs:169
Assertion with == failed
code: assert new_code ==
"defmodule MyApp.Router do\r\n use MyApp, :router\r\n\r\n scope \"/\", MyApp do\r\n resources \"/companies\", CompanyController\r\n end\r\nend\r\n"
left: "defmodule MyApp.Router do\r\n use MyApp, :router\r\n\r\n scope \"/\", MyApp do\r\n resources \"/companies\", CompanyController\r\n end\r\nend\n"
right: "defmodule MyApp.Router do\r\n use MyApp, :router\r\n\r\n scope \"/\", MyApp do\r\n resources \"/companies\", CompanyController\r\n end\r\nend\r\n"
stacktrace:
test/mix/tasks/phx.gen.auth/injector_test.exs:185: (test)
.
11) test router_plug_inject/2 respects windows line endings (Mix.Tasks.Phx.Gen.Auth.InjectorTest)
test/mix/tasks/phx.gen.auth/injector_test.exs:544
Assertion with == failed
code: assert injected ==
"defmodule DemoWeb.Router do\r\r\n use DemoWeb, :router\r\r\n\r\r\n pipeline :browser do\r\r\n plug :accepts, [\"html\"]\r\r\n plug :fetch_session\r\r\n plug :fetch_flash\r\r\n plug :protect_from_forgery\r\r\n plug :put_secure_browser_headers\r\r\n plug :fetch_current_user\r\r\n end\r\r\nend\r\r\n"
left: "defmodule DemoWeb.Router do\r\r\n use DemoWeb, :router\r\r\n\r\r\n pipeline :browser do\r\r\n plug :accepts, [\"html\"]\r\r\n plug :fetch_session\r\r\n plug :fetch_flash\r\r\n plug :protect_from_forgery\r\r\n plug :put_secure_browser_headers\r\r\n plug :fetch_current_user\r\n end\r\r\nend\r\r\n"
right: "defmodule DemoWeb.Router do\r\r\n use DemoWeb, :router\r\r\n\r\r\n pipeline :browser do\r\r\n plug :accepts, [\"html\"]\r\r\n plug :fetch_session\r\r\n plug :fetch_flash\r\r\n plug :protect_from_forgery\r\r\n plug :put_secure_browser_headers\r\r\n plug :fetch_current_user\r\r\n end\r\r\nend\r\r\n"
stacktrace:
test/mix/tasks/phx.gen.auth/injector_test.exs:564: (test)
12) test app_layout_menu_inject/2 works with windows line endings (Mix.Tasks.Phx.Gen.Auth.InjectorTest)
test/mix/tasks/phx.gen.auth/injector_test.exs:891
Assertion with == failed
code: assert template_str ==
"<!DOCTYPE html>\r\r\n<html lang=\"en\">\r\r\n <head>\r\r\n <title>Demo · Phoenix Framework</title>\r\r\n </head>\r\r\n <body>\r\r\n <ul class=\"relative z-10 flex items-center gap-4 px-4 sm:px-6 lg:px-8 justify-end\">\r\r\n <%= if @current_user do %>\r\r\n <li class=\"text-[0.8125rem] leading-6 text-zinc-900\">\r\r\n <%= @current_user.email %>\r\r\n </li>\r\r\n <li>\r\r\n <.link\r\r\n href={~p\"/users/settings\"}\r\r\n
class=\"text-[0.8125rem] leading-6 text-zinc-900 font-semibold hover:text-zinc-700\"\r\r\n >\r\r\n Settings\r\r\n </.link>\r\r\n </li>\r\r\n <li>\r\r\n <.link\r\r\n href={~p\"/users/log_out\"}\r\r\n method=\"delete\"\r\r\n class=\"text-[0.8125rem] leading-6 text-zinc-900 font-semibold hover:text-zinc-700\"\r\r\n >\r\r\n Log out\r\r\n </.link>\r\r\n </li>\r\r\n <% else %>\r\r\n <li>\r\r\n <.link\r\r\n href={~p\"/users/register\"}\r\r\n class=\"text-[0.8125rem] leading-6 text-zinc-900 font-semibold hover:text-zinc-700\"\r\r\n >\r\r\n Register\r\r\n </.link>\r\r\n </li>\r\r\n <li>\r\r\n <.link\r\r\n href={~p\"/users/log_in\"}\r\r\n class=\"text-[0.8125rem] leading-6 text-zinc-900 font-semibold hover:text-zinc-700\"\r\r\n >\r\r\n Log in\r\r\n </.link>\r\r\n </li>\r\r\n <% end %>\r\r\n </ul>\r\r\n <main class=\"container\">\r\r\n <p class=\"alert alert-info\" role=\"alert\"><%= Phoenix.Flash.get(@conn, :info) %></p>\r\r\n <p class=\"alert alert-danger\" role=\"alert\"><%= Phoenix.Flash.get(@conn, :error) %></p>\r\r\n <%= @inner_content %>\r\r\n </main>\r\r\n </body>\r\r\n</html>\r\r\n"
left: "<!DOCTYPE html>\r\r\n<html lang=\"en\">\r\r\n <head>\r\r\n <title>Demo · Phoenix Framework</title>\r\r\n </head>\r\r\n <body>\r\r\n<ul class=\"relative z-10 flex items-center gap-4 px-4 sm:px-6 lg:px-8 justify-end\">\r\n <%= if @current_user do %>\r\n <li class=\"text-[0.8125rem] leading-6 text-zinc-900\">\r\n <%= @current_user.email %>\r\n </li>\r\n <li>\r\n <.link\r\n href={~p\"/users/settings\"}\r\n class=\"text-[0.8125rem] leading-6 text-zinc-900 font-semibold hover:text-zinc-700\"\r\n >\r\n Settings\r\n </.link>\r\n </li>\r\n <li>\r\n <.link\r\n href={~p\"/users/log_out\"}\r\n method=\"delete\"\r\n class=\"text-[0.8125rem] leading-6 text-zinc-900 font-semibold hover:text-zinc-700\"\r\n >\r\n Log out\r\n </.link>\r\n </li>\r\n <% else %>\r\n <li>\r\n <.link\r\n href={~p\"/users/register\"}\r\n class=\"text-[0.8125rem] leading-6 text-zinc-900 font-semibold hover:text-zinc-700\"\r\n >\r\n Register\r\n </.link>\r\n </li>\r\n <li>\r\n <.link\r\n href={~p\"/users/log_in\"}\r\n class=\"text-[0.8125rem] leading-6 text-zinc-900 font-semibold hover:text-zinc-700\"\r\n >\r\n Log in\r\n </.link>\r\n </li>\r\n <% end %>\r\n</ul>\r\n <main class=\"container\">\r\r\n <p class=\"alert alert-info\" role=\"alert\"><%= Phoenix.Flash.get(@conn, :info) %></p>\r\r\n <p class=\"alert alert-danger\" role=\"alert\"><%= Phoenix.Flash.get(@conn, :error) %></p>\r\r\n <%= @inner_content %>\r\r\n </main>\r\r\n </body>\r\r\n</html>\r\r\n"
right: "<!DOCTYPE html>\r\r\n<html lang=\"en\">\r\r\n <head>\r\r\n <title>Demo · Phoenix Framework</title>\r\r\n </head>\r\r\n <body>\r\r\n <ul class=\"relative z-10 flex items-center gap-4 px-4 sm:px-6 lg:px-8 justify-end\">\r\r\n <%= if @current_user do %>\r\r\n <li class=\"text-[0.8125rem] leading-6 text-zinc-900\">\r\r\n <%= @current_user.email %>\r\r\n </li>\r\r\n <li>\r\r\n <.link\r\r\n href={~p\"/users/settings\"}\r\r\n class=\"text-[0.8125rem] leading-6 text-zinc-900 font-semibold hover:text-zinc-700\"\r\r\n >\r\r\n Settings\r\r\n </.link>\r\r\n </li>\r\r\n <li>\r\r\n <.link\r\r\n href={~p\"/users/log_out\"}\r\r\n method=\"delete\"\r\r\n class=\"text-[0.8125rem] leading-6 text-zinc-900 font-semibold hover:text-zinc-700\"\r\r\n >\r\r\n Log out\r\r\n </.link>\r\r\n </li>\r\r\n <% else %>\r\r\n <li>\r\r\n <.link\r\r\n href={~p\"/users/register\"}\r\r\n class=\"text-[0.8125rem] leading-6 text-zinc-900 font-semibold hover:text-zinc-700\"\r\r\n >\r\r\n Register\r\r\n </.link>\r\r\n </li>\r\r\n <li>\r\r\n <.link\r\r\n href={~p\"/users/log_in\"}\r\r\n class=\"text-[0.8125rem] leading-6 text-zinc-900 font-semibold hover:text-zinc-700\"\r\r\n >\r\r\n Log in\r\r\n </.link>\r\r\n </li>\r\r\n <% end %>\r\r\n </ul>\r\r\n <main class=\"container\">\r\r\n <p class=\"alert alert-info\" role=\"alert\"><%= Phoenix.Flash.get(@conn, :info) %></p>\r\r\n <p class=\"alert alert-danger\" role=\"alert\"><%= Phoenix.Flash.get(@conn, :error) %></p>\r\r\n <%= @inner_content %>\r\r\n </main>\r\r\n </body>\r\r\n</html>\r\r\n"
stacktrace:
test/mix/tasks/phx.gen.auth/injector_test.exs:912: (test)
.
13) test app_layout_menu_inject/2 injects user menu at the bottom of nav section when it exists (Mix.Tasks.Phx.Gen.Auth.InjectorTest)
test/mix/tasks/phx.gen.auth/injector_test.exs:623
Assertion with == failed
code: assert template_str ==
"<!DOCTYPE html>\r\n<html lang=\"en\">\r\n <head>\r\n <title>Demo · Phoenix Framework</title>\r\n </head>\r\n <body>\r\n <header>\r\n <section class=\"container\">\r\n <nav>\r\n <ul>\r\n <li><a href=\"https://hexdocs.pm/phoenix/overview.html\">Get Started</a></li>\r\n <%= if function_exported?(Routes, :live_dashboard_path, 2) do %>\r\n <li><.link href={Routes.live_dashboard_path(@conn, :home)}>LiveDashboard</.link></li>\r\n <% end %>\r\n </ul>\r\n <ul class=\"relative z-10 flex items-center gap-4 px-4 sm:px-6 lg:px-8 justify-end\">\r\n <%= if @current_user do %>\r\n <li class=\"text-[0.8125rem] leading-6 text-zinc-900\">\r\n <%= @current_user.email %>\r\n </li>\r\n <li>\r\n <.link\r\n href={~p\"/users/settings\"}\r\n class=\"text-[0.8125rem] leading-6 text-zinc-900 font-semibold hover:text-zinc-700\"\r\n >\r\n Settings\r\n </.link>\r\n </li>\r\n <li>\r\n <.link\r\n
href={~p\"/users/log_out\"}\r\n method=\"delete\"\r\n class=\"text-[0.8125rem] leading-6 text-zinc-900 font-semibold hover:text-zinc-700\"\r\n >\r\n Log out\r\n </.link>\r\n </li>\r\n <% else %>\r\n <li>\r\n
<.link\r\n href={~p\"/users/register\"}\r\n class=\"text-[0.8125rem] leading-6 text-zinc-900 font-semibold hover:text-zinc-700\"\r\n >\r\n Register\r\n </.link>\r\n </li>\r\n <li>\r\n <.link\r\n href={~p\"/users/log_in\"}\r\n class=\"text-[0.8125rem] leading-6 text-zinc-900 font-semibold hover:text-zinc-700\"\r\n >\r\n
Log in\r\n </.link>\r\n </li>\r\n <% end %>\r\n </ul>\r\n </nav>\r\n </section>\r\n </header>\r\n </body>\r\n</html>\r\n"
left: "<!DOCTYPE html>\r\n<html lang=\"en\">\r\n <head>\r\n <title>Demo · Phoenix Framework</title>\r\n </head>\r\n <body>\r\n <header>\r\n <section class=\"container\">\r\n <nav>\r\n <ul>\r\n <li><a href=\"https://hexdocs.pm/phoenix/overview.html\">Get Started</a></li>\r\n <%= if function_exported?(Routes, :live_dashboard_path, 2) do %>\r\n <li><.link href={Routes.live_dashboard_path(@conn, :home)}>LiveDashboard</.link></li>\r\n
<% end %>\r\n </ul>\r\n <ul class=\"relative z-10 flex items-center gap-4 px-4 sm:px-6 lg:px-8 justify-end\">\r\r\n <%= if @current_user do %>\r\r\n <li class=\"text-[0.8125rem] leading-6 text-zinc-900\">\r\r\n <%= @current_user.email %>\r\r\n </li>\r\r\n
<li>\r\r\n <.link\r\r\n href={~p\"/users/settings\"}\r\r\n class=\"text-[0.8125rem] leading-6 text-zinc-900 font-semibold hover:text-zinc-700\"\r\r\n >\r\r\n Settings\r\r\n </.link>\r\r\n </li>\r\r\n <li>\r\r\n
<.link\r\r\n href={~p\"/users/log_out\"}\r\r\n method=\"delete\"\r\r\n class=\"text-[0.8125rem] leading-6 text-zinc-900 font-semibold hover:text-zinc-700\"\r\r\n >\r\r\n Log out\r\r\n </.link>\r\r\n </li>\r\r\n <% else %>\r\r\n <li>\r\r\n <.link\r\r\n href={~p\"/users/register\"}\r\r\n class=\"text-[0.8125rem] leading-6 text-zinc-900 font-semibold hover:text-zinc-700\"\r\r\n >\r\r\n Register\r\r\n </.link>\r\r\n </li>\r\r\n <li>\r\r\n <.link\r\r\n href={~p\"/users/log_in\"}\r\r\n class=\"text-[0.8125rem] leading-6 text-zinc-900 font-semibold hover:text-zinc-700\"\r\r\n >\r\r\n Log in\r\r\n </.link>\r\r\n </li>\r\r\n <% end %>\r\r\n </ul>\r\n </nav>\r\n </section>\r\n </header>\r\n </body>\r\n</html>\r\n"
right: "<!DOCTYPE html>\r\n<html lang=\"en\">\r\n <head>\r\n <title>Demo · Phoenix Framework</title>\r\n </head>\r\n <body>\r\n <header>\r\n <section class=\"container\">\r\n <nav>\r\n <ul>\r\n <li><a href=\"https://hexdocs.pm/phoenix/overview.html\">Get Started</a></li>\r\n <%= if function_exported?(Routes, :live_dashboard_path, 2) do %>\r\n <li><.link href={Routes.live_dashboard_path(@conn, :home)}>LiveDashboard</.link></li>\r\n
<% end %>\r\n </ul>\r\n <ul class=\"relative z-10 flex items-center gap-4 px-4 sm:px-6 lg:px-8 justify-end\">\r\n <%= if @current_user do %>\r\n <li class=\"text-[0.8125rem] leading-6 text-zinc-900\">\r\n <%= @current_user.email %>\r\n </li>\r\n <li>\r\n <.link\r\n href={~p\"/users/settings\"}\r\n class=\"text-[0.8125rem] leading-6 text-zinc-900 font-semibold hover:text-zinc-700\"\r\n >\r\n Settings\r\n </.link>\r\n </li>\r\n <li>\r\n <.link\r\n
href={~p\"/users/log_out\"}\r\n method=\"delete\"\r\n class=\"text-[0.8125rem] leading-6 text-zinc-900 font-semibold hover:text-zinc-700\"\r\n >\r\n Log out\r\n </.link>\r\n </li>\r\n <% else %>\r\n <li>\r\n
<.link\r\n href={~p\"/users/register\"}\r\n class=\"text-[0.8125rem] leading-6 text-zinc-900 font-semibold hover:text-zinc-700\"\r\n >\r\n Register\r\n </.link>\r\n </li>\r\n <li>\r\n <.link\r\n href={~p\"/users/log_in\"}\r\n class=\"text-[0.8125rem] leading-6 text-zinc-900 font-semibold hover:text-zinc-700\"\r\n >\r\n
Log in\r\n </.link>\r\n </li>\r\n <% end %>\r\n </ul>\r\n </nav>\r\n </section>\r\n </header>\r\n </body>\r\n</html>\r\n"
stacktrace:
test/mix/tasks/phx.gen.auth/injector_test.exs:651: (test)
14) test test_config_inject/2 injects after "use Mix.Config" when hashing_library is argon2 (Mix.Tasks.Phx.Gen.Auth.InjectorTest)
test/mix/tasks/phx.gen.auth/injector_test.exs:320
Assertion with == failed
code: assert injected ==
"use Mix.Config\r\n\r\n# Only in tests, remove the complexity from the password hashing algorithm\r\nconfig :argon2_elixir, t_cost: 1, m_cost: 8\r\n"
left: "use Mix.Config\r\n\r\n# Only in tests, remove the complexity from the password hashing algorithm\r\r\nconfig :argon2_elixir, t_cost: 1, m_cost: 8\r\n"
right: "use Mix.Config\r\n\r\n# Only in tests, remove the complexity from the password hashing algorithm\r\nconfig :argon2_elixir, t_cost: 1, m_cost: 8\r\n"
stacktrace:
test/mix/tasks/phx.gen.auth/injector_test.exs:329: (test)
15) test mix_dependency_inject/2 injects before existing dependencies (Mix.Tasks.Phx.Gen.Auth.InjectorTest)
test/mix/tasks/phx.gen.auth/injector_test.exs:8
Assertion with == failed
code: assert new_file ==
"defmodule RainyDay.MixProject do\r\n use Mix.Project\r\n\r\n def project do\r\n [\r\n app: :rainy_day,\r\n version: \"0.1.0\",\r\n build_path: \"../../_build\",\r\n config_path: \"../../config/config.exs\",\r\n deps_path: \"../../deps\",\r\n lockfile: \"../../mix.lock\",\r\n elixir: \"~> 1.7\",\r\n elixirc_paths: elixirc_paths(Mix.env()),\r\n start_permanent: Mix.env() == :prod,\r\n aliases: aliases(),\r\n deps: deps()\r\n ]\r\n end\r\n\r\n # Configuration for the OTP application.\r\n #\r\n # Type `mix help compile.app` for more information.\r\n def application do\r\n [\r\n mod: {RainyDay.Application, []},\r\n extra_applications: [:logger, :runtime_tools]\r\n ]\r\n end\r\n\r\n # Specifies which paths to compile per environment.\r\n defp elixirc_paths(:test), do: [\"lib\", \"test/support\"]\r\n defp elixirc_paths(_), do: [\"lib\"]\r\n\r\n # Specifies your project dependencies.\r\n #\r\n # Type `mix help deps` for examples and options.\r\n defp deps do\r\n [\r\n {:bcrypt_elixir, \"~> 2.0\"},\r\n {:phoenix_pubsub, \"~> 2.0-dev\", github: \"phoenixframework/phoenix_pubsub\"},\r\n {:ecto_sql, \"~> 3.10\"},\r\n {:postgrex, \">= 0.0.0\"},\r\n {:jason, \"~> 1.0\"}\r\n ]\r\n end\r\n\r\n # Aliases are shortcuts or tasks specific to the current project.\r\n # For example, to create, migrate and run the seeds file at once:\r\n #\r\n # $ mix ecto.setup\r\n #\r\n # See the documentation for `Mix` for more info on aliases.\r\n defp aliases do\r\n [\r\n \"ecto.setup\": [\"ecto.create\", \"ecto.migrate\", \"run priv/repo/seeds.exs\"],\r\n \"ecto.reset\": [\"ecto.drop\", \"ecto.setup\"],\r\n test: [\"ecto.create --quiet\", \"ecto.migrate\", \"test\"]\r\n ]\r\n end\r\nend\r\n"
left: "defmodule RainyDay.MixProject do\r\n use Mix.Project\r\n\r\n def project do\r\n [\r\n app: :rainy_day,\r\n version: \"0.1.0\",\r\n build_path: \"../../_build\",\r\n config_path: \"../../config/config.exs\",\r\n deps_path: \"../../deps\",\r\n lockfile: \"../../mix.lock\",\r\n elixir: \"~> 1.7\",\r\n elixirc_paths: elixirc_paths(Mix.env()),\r\n start_permanent: Mix.env() == :prod,\r\n aliases: aliases(),\r\n deps: deps()\r\n ]\r\n end\r\n\r\n # Configuration for the OTP application.\r\n #\r\n # Type `mix help compile.app` for more information.\r\n def application do\r\n [\r\n mod: {RainyDay.Application, []},\r\n extra_applications: [:logger, :runtime_tools]\r\n ]\r\n end\r\n\r\n # Specifies which paths to compile per environment.\r\n defp elixirc_paths(:test), do: [\"lib\", \"test/support\"]\r\n defp elixirc_paths(_), do: [\"lib\"]\r\n\r\n # Specifies your project dependencies.\r\n #\r\n # Type `mix help deps` for examples and options.\r\n defp deps do\r\n [\r\n {:bcrypt_elixir, \"~> 2.0\"},\n {:phoenix_pubsub, \"~> 2.0-dev\", github: \"phoenixframework/phoenix_pubsub\"},\r\n {:ecto_sql, \"~> 3.10\"},\r\n {:postgrex, \">= 0.0.0\"},\r\n {:jason, \"~> 1.0\"}\r\n ]\r\n end\r\n\r\n # Aliases are shortcuts or tasks specific to the current project.\r\n # For example, to create, migrate and run the seeds file at once:\r\n #\r\n # $ mix ecto.setup\r\n #\r\n # See the documentation for `Mix` for more info on aliases.\r\n defp aliases do\r\n [\r\n \"ecto.setup\": [\"ecto.create\", \"ecto.migrate\", \"run priv/repo/seeds.exs\"],\r\n \"ecto.reset\": [\"ecto.drop\", \"ecto.setup\"],\r\n test: [\"ecto.create --quiet\", \"ecto.migrate\", \"test\"]\r\n ]\r\n end\r\nend\r\n"
right: "defmodule RainyDay.MixProject do\r\n use Mix.Project\r\n\r\n def project do\r\n [\r\n app: :rainy_day,\r\n version: \"0.1.0\",\r\n build_path: \"../../_build\",\r\n config_path: \"../../config/config.exs\",\r\n deps_path: \"../../deps\",\r\n lockfile: \"../../mix.lock\",\r\n elixir: \"~> 1.7\",\r\n elixirc_paths: elixirc_paths(Mix.env()),\r\n start_permanent: Mix.env() == :prod,\r\n aliases: aliases(),\r\n deps: deps()\r\n ]\r\n end\r\n\r\n # Configuration for the OTP application.\r\n #\r\n # Type `mix help compile.app` for more information.\r\n def application do\r\n [\r\n mod: {RainyDay.Application, []},\r\n extra_applications: [:logger, :runtime_tools]\r\n ]\r\n end\r\n\r\n # Specifies which paths to compile per environment.\r\n defp elixirc_paths(:test), do: [\"lib\", \"test/support\"]\r\n defp elixirc_paths(_), do: [\"lib\"]\r\n\r\n # Specifies your project dependencies.\r\n #\r\n # Type `mix help deps` for examples and options.\r\n defp deps do\r\n [\r\n {:bcrypt_elixir, \"~> 2.0\"},\r\n {:phoenix_pubsub, \"~> 2.0-dev\", github: \"phoenixframework/phoenix_pubsub\"},\r\n {:ecto_sql, \"~> 3.10\"},\r\n {:postgrex, \">= 0.0.0\"},\r\n {:jason, \"~> 1.0\"}\r\n ]\r\n end\r\n\r\n # Aliases are shortcuts or tasks specific to the current project.\r\n # For example, to create, migrate and run the seeds file at once:\r\n #\r\n # $ mix ecto.setup\r\n #\r\n # See the documentation for `Mix` for more info on aliases.\r\n defp aliases do\r\n [\r\n \"ecto.setup\": [\"ecto.create\", \"ecto.migrate\", \"run priv/repo/seeds.exs\"],\r\n \"ecto.reset\": [\"ecto.drop\", \"ecto.setup\"],\r\n test: [\"ecto.create --quiet\", \"ecto.migrate\", \"test\"]\r\n ]\r\n end\r\nend\r\n"
stacktrace:
test/mix/tasks/phx.gen.auth/injector_test.exs:75: (test)
..................................
17:29:05.911 [error] Could not start watcher "echo" from "c:/Users/varsh/Documents/phoenix", executable does not exist
16) test starts watching and writes to stdio with args (Phoenix.Endpoint.WatcherTest)
test/phoenix/endpoint/watcher_test.exs:7
** (EXIT from #PID<0.1893.0>) shutdown
..............................................................................................................................................
17) test compile includes existing digests in new cache manifest (Phoenix.DigesterTest)
test/phoenix/digester_test.exs:48
Expected the difference between 32132171 and 63854481547 (63822349376) to be less than or equal to 2
code: assert_in_delta json["digests"]["foo-d978852bea6530fcd197b5445ed008fd.css"]["mtime"],
stacktrace:
test/phoenix/digester_test.exs:79: (test)
.......................
18) test uses action name (Phoenix.Controller.RenderTest)
test/phoenix/controller/render_test.exs:127
Assertion with == failed
code: assert conn.resp_body == "Hello\n"
left: "Hello\r\n"
right: "Hello\n"
stacktrace:
test/phoenix/controller/render_test.exs:131: (test)
19) test render with layout sets view_module/template for layout and inner view (Phoenix.Controller.RenderTest)
test/phoenix/controller/render_test.exs:91
Assertion with == failed
code: assert conn.resp_body ==
"<html>\n <title>Hello</title>\n View module is Elixir.MyApp.UserView and view template is inner.html\n\n</html>\n"
left: "<html>\r\n <title>Hello</title>\r\n View module is Elixir.MyApp.UserView and view template is inner.html\r\n\r\n</html>\r\n"
right: "<html>\n <title>Hello</title>\n View module is Elixir.MyApp.UserView and view template is inner.html\n\n</html>\n"
stacktrace:
test/phoenix/controller/render_test.exs:93: (test)
20) test renders template with overriding layout option (Phoenix.Controller.RenderTest)
test/phoenix/controller/render_test.exs:73
Assertion with == failed
code: assert conn.resp_body == "Hello\n"
left: "Hello\r\n"
right: "Hello\n"
stacktrace:
test/phoenix/controller/render_test.exs:75: (test)
..
21) test renders atom template with put_root_layout (Phoenix.Controller.RenderTest)
test/phoenix/controller/render_test.exs:62
Assertion with == failed
code: assert conn.resp_body == "ROOTSTART[Hello]<html>\n <title>Hello</title>\n Hello\n\n</html>\nROOTEND\n"
left: "ROOTSTART[Hello]<html>\r\n <title>Hello</title>\r\n Hello\r\n\r\n</html>\r\nROOTEND\r\n"
right: "ROOTSTART[Hello]<html>\n <title>Hello</title>\n Hello\n\n</html>\nROOTEND\n"
stacktrace:
test/phoenix/controller/render_test.exs:69: (test)
22) test renders atom template (Phoenix.Controller.RenderTest)
test/phoenix/controller/render_test.exs:29
Assertion with == failed
code: assert conn.resp_body == "Hello\n"
left: "Hello\r\n"
right: "Hello\n"
stacktrace:
test/phoenix/controller/render_test.exs:32: (test)
.
23) test merges render assigns (Phoenix.Controller.RenderTest)
test/phoenix/controller/render_test.exs:107
Assertion with == failed
code: assert conn.resp_body == "Hello\n"
left: "Hello\r\n"
right: "Hello\n"
stacktrace:
test/phoenix/controller/render_test.exs:109: (test)
...
24) test uses connection assigns (Phoenix.Controller.RenderTest)
test/phoenix/controller/render_test.exs:113
Assertion with == failed
code: assert conn.resp_body == "Hello\n"
left: "Hello\r\n"
right: "Hello\n"
stacktrace:
test/phoenix/controller/render_test.exs:115: (test)
...
25) test renders string template with put_root_layout (Phoenix.Controller.RenderTest)
test/phoenix/controller/render_test.exs:44
Assertion with == failed
code: assert conn.resp_body == "ROOTSTART[Hello]<html>\n <title>Hello</title>\n Hello\n\n</html>\nROOTEND\n"
left: "ROOTSTART[Hello]<html>\r\n <title>Hello</title>\r\n Hello\r\n\r\n</html>\r\nROOTEND\r\n"
right: "ROOTSTART[Hello]<html>\n <title>Hello</title>\n Hello\n\n</html>\nROOTEND\n"
stacktrace:
test/phoenix/controller/render_test.exs:51: (test)
...
26) test render without layout sets inner view_module/template assigns (Phoenix.Controller.RenderTest)
test/phoenix/controller/render_test.exs:96
Assertion with == failed
code: assert conn.resp_body == "View module is Elixir.MyApp.UserView and view template is inner.html\n"
left: "View module is Elixir.MyApp.UserView and view template is inner.html\r\n"
right: "View module is Elixir.MyApp.UserView and view template is inner.html\n"
stacktrace:
test/phoenix/controller/render_test.exs:98: (test)
27) test renders string template (Phoenix.Controller.RenderTest)
test/phoenix/controller/render_test.exs:21
Assertion with == failed
code: assert conn.resp_body == "Hello\n"
left: "Hello\r\n"
right: "Hello\n"
stacktrace:
test/phoenix/controller/render_test.exs:23: (test)
..........................................................................................................................
28) test helpers: false (Phoenix.Router.ConsoleFormatterTest)
test/phoenix/router/console_formatter_test.exs:102
Assertion with == failed
code: assert draw(HelpersFalseRouter) ==
" GET /image RouteFormatter.ImageController :index\r\n GET /image/:id/edit RouteFormatter.ImageController :edit\r\n GET /image/new RouteFormatter.ImageController :new\r\n GET /image/:id RouteFormatter.ImageController :show\r\n POST /image RouteFormatter.ImageController :create\r\n PATCH /image/:id RouteFormatter.ImageController :update\r\n PUT /image/:id RouteFormatter.ImageController :update\r\n DELETE /image/:id RouteFormatter.ImageController :delete\r\n"
left: " GET /image RouteFormatter.ImageController :index\n GET /image/:id/edit RouteFormatter.ImageController :edit\n GET /image/new RouteFormatter.ImageController :new\n GET /image/:id RouteFormatter.ImageController :show\n POST /image RouteFormatter.ImageController :create\n PATCH /image/:id RouteFormatter.ImageController :update\n PUT /image/:id RouteFormatter.ImageController :update\n DELETE /image/:id RouteFormatter.ImageController :delete\n"
right: " GET /image RouteFormatter.ImageController :index\r\n GET /image/:id/edit RouteFormatter.ImageController :edit\r\n GET /image/new RouteFormatter.ImageController :new\r\n GET /image/:id RouteFormatter.ImageController :show\r\n POST /image RouteFormatter.ImageController :create\r\n PATCH /image/:id RouteFormatter.ImageController :update\r\n PUT /image/:id RouteFormatter.ImageController :update\r\n DELETE /image/:id RouteFormatter.ImageController :delete\r\n"
stacktrace:
test/phoenix/router/console_formatter_test.exs:103: (test)
29) test format resource routes (Phoenix.Router.ConsoleFormatterTest)
test/phoenix/router/console_formatter_test.exs:41
Assertion with == failed
code: assert draw(RouterTestResources) ==
"image_path GET /images RouteFormatter.ImageController :index\r\nimage_path GET /images/:id/edit RouteFormatter.ImageController :edit\r\nimage_path GET /images/new RouteFormatter.ImageController :new\r\nimage_path GET /images/:id RouteFormatter.ImageController :show\r\nimage_path POST /images RouteFormatter.ImageController :create\r\nimage_path PATCH /images/:id RouteFormatter.ImageController :update\r\n PUT /images/:id RouteFormatter.ImageController :update\r\nimage_path DELETE /images/:id RouteFormatter.ImageController :delete\r\n"
left: "image_path GET /images RouteFormatter.ImageController :index\nimage_path GET /images/:id/edit RouteFormatter.ImageController :edit\nimage_path GET /images/new RouteFormatter.ImageController :new\nimage_path GET /images/:id RouteFormatter.ImageController :show\nimage_path POST /images RouteFormatter.ImageController :create\nimage_path PATCH /images/:id RouteFormatter.ImageController :update\n PUT /images/:id RouteFormatter.ImageController :update\nimage_path DELETE /images/:id RouteFormatter.ImageController :delete\n"
right: "image_path GET /images RouteFormatter.ImageController :index\r\nimage_path GET /images/:id/edit RouteFormatter.ImageController :edit\r\nimage_path GET /images/new RouteFormatter.ImageController :new\r\nimage_path GET /images/:id RouteFormatter.ImageController :show\r\nimage_path POST /images RouteFormatter.ImageController :create\r\nimage_path PATCH /images/:id RouteFormatter.ImageController :update\r\n PUT /images/:id RouteFormatter.ImageController :update\r\nimage_path DELETE /images/:id RouteFormatter.ImageController :delete\r\n"
stacktrace:
test/phoenix/router/console_formatter_test.exs:42: (test)
30) test format single resource routes (Phoenix.Router.ConsoleFormatterTest)
test/phoenix/router/console_formatter_test.exs:61
Assertion with == failed
code: assert draw(RouterTestResource) ==
"image_path GET /image/edit RouteFormatter.ImageController :edit\r\nimage_path GET /image/new RouteFormatter.ImageController :new\r\nimage_path GET /image RouteFormatter.ImageController :show\r\nimage_path POST /image RouteFormatter.ImageController :create\r\nimage_path PATCH /image RouteFormatter.ImageController :update\r\n PUT /image RouteFormatter.ImageController :update\r\nimage_path DELETE /image RouteFormatter.ImageController :delete\r\n * /admin RouteFormatter.PageController []\r\n * /f1 RouteFormatter.ImageController []\r\n"
left: "image_path GET /image/edit RouteFormatter.ImageController :edit\nimage_path GET /image/new RouteFormatter.ImageController :new\nimage_path GET /image RouteFormatter.ImageController :show\nimage_path POST /image RouteFormatter.ImageController :create\nimage_path PATCH /image RouteFormatter.ImageController :update\n PUT /image RouteFormatter.ImageController :update\nimage_path DELETE /image RouteFormatter.ImageController :delete\n * /admin RouteFormatter.PageController []\n * /f1 RouteFormatter.ImageController []\n"
right: "image_path GET /image/edit RouteFormatter.ImageController :edit\r\nimage_path GET /image/new RouteFormatter.ImageController :new\r\nimage_path GET /image RouteFormatter.ImageController :show\r\nimage_path POST /image RouteFormatter.ImageController :create\r\nimage_path PATCH /image RouteFormatter.ImageController :update\r\n PUT /image RouteFormatter.ImageController :update\r\nimage_path DELETE /image RouteFormatter.ImageController :delete\r\n * /admin RouteFormatter.PageController []\r\n * /f1 RouteFormatter.ImageController []\r\n"
stacktrace:
test/phoenix/router/console_formatter_test.exs:62: (test)
31) test endpoint sockets format with sockets (Phoenix.Router.ConsoleFormatterTest)
test/phoenix/router/console_formatter_test.exs:76
Assertion with == failed
code: assert draw(RouterTestSingleRoutes, FormatterEndpoint) ==
" page_path GET / RouteFormatter.PageController :index\r\nupload_image_path POST /images RouteFormatter.ImageController :upload\r\nremove_image_path DELETE /images RouteFormatter.ImageController :delete\r\n websocket WS /socket/websocket TestSocket\r\n longpoll GET /socket/longpoll TestSocket\r\n longpoll POST /socket/longpoll TestSocket\r\n"
left: " page_path GET / RouteFormatter.PageController :index\nupload_image_path POST /images RouteFormatter.ImageController :upload\nremove_image_path DELETE /images RouteFormatter.ImageController :delete\n websocket WS /socket/websocket TestSocket\n longpoll GET /socket/longpoll TestSocket\n longpoll POST /socket/longpoll TestSocket\n"
right: " page_path GET / RouteFormatter.PageController :index\r\nupload_image_path POST /images RouteFormatter.ImageController :upload\r\nremove_image_path DELETE /images RouteFormatter.ImageController :delete\r\n websocket WS /socket/websocket TestSocket\r\n longpoll GET /socket/longpoll TestSocket\r\n longpoll POST /socket/longpoll TestSocket\r\n"
stacktrace:
test/phoenix/router/console_formatter_test.exs:77: (test)
32) test endpoint sockets format without sockets (Phoenix.Router.ConsoleFormatterTest)
test/phoenix/router/console_formatter_test.exs:88
Assertion with == failed
code: assert draw(RouterTestSingleRoutes, __MODULE__) ==
" page_path GET / RouteFormatter.PageController :index\r\nupload_image_path POST /images RouteFormatter.ImageController :upload\r\nremove_image_path DELETE /images RouteFormatter.ImageController :delete\r\n"
left: " page_path GET / RouteFormatter.PageController :index\nupload_image_path POST /images RouteFormatter.ImageController :upload\nremove_image_path DELETE /images RouteFormatter.ImageController :delete\n"
right: " page_path GET / RouteFormatter.PageController :index\r\nupload_image_path POST /images RouteFormatter.ImageController :upload\r\nremove_image_path DELETE /images RouteFormatter.ImageController :delete\r\n"
stacktrace:
test/phoenix/router/console_formatter_test.exs:89: (test)
33) test format multiple routes (Phoenix.Router.ConsoleFormatterTest)
test/phoenix/router/console_formatter_test.exs:28
Assertion with == failed
code: assert draw(RouterTestSingleRoutes) ==
" page_path GET / RouteFormatter.PageController :index\r\nupload_image_path POST /images RouteFormatter.ImageController :upload\r\nremove_image_path DELETE /images RouteFormatter.ImageController :delete\r\n"
left: " page_path GET / RouteFormatter.PageController :index\nupload_image_path POST /images RouteFormatter.ImageController :upload\nremove_image_path DELETE /images RouteFormatter.ImageController :delete\n"
right: " page_path GET / RouteFormatter.PageController :index\r\nupload_image_path POST /images RouteFormatter.ImageController :upload\r\nremove_image_path DELETE /images RouteFormatter.ImageController :delete\r\n"
stacktrace:
test/phoenix/router/console_formatter_test.exs:29: (test)
................................................................................
34) test logging logs controller and action with (path) parameters (Phoenix.Router.RoutingTest)
test/phoenix/router/routing_test.exs:255
Assertion with =~ failed
code: assert capture_log(fn -> call(Router, :get, "/users/1", foo: "bar") end) =~
"[debug] Processing with Phoenix.Router.RoutingTest.UserController.show/2\r\n Parameters: %{\"foo\" => \"bar\", \"id\" => \"1\"}\r\n Pipelines: []\r\n"
left: "\n17:29:09.853 [debug] Processing with Phoenix.Router.RoutingTest.UserController.show/2\n Parameters: %{\"foo\" => \"bar\", \"id\" => \"1\"}\n Pipelines: []\n"
right: "[debug] Processing with Phoenix.Router.RoutingTest.UserController.show/2\r\n Parameters: %{\"foo\" => \"bar\", \"id\" => \"1\"}\r\n Pipelines: []\r\n"
stacktrace:
test/phoenix/router/routing_test.exs:256: (test)
...
35) test logging logs plug with pipeline and custom level (Phoenix.Router.RoutingTest)
test/phoenix/router/routing_test.exs:271
Assertion with =~ failed
code: assert capture_log(fn -> call(Router, :get, "/plug") end) =~
"[info] Processing with Phoenix.Router.RoutingTest.SomePlug\r\n Parameters: %{}\r\n Pipelines: [:noop]\r\n"
left: "\n17:29:09.854 [info] Processing with Phoenix.Router.RoutingTest.SomePlug\n Parameters: %{}\n Pipelines: [:noop]\n"
right: "[info] Processing with Phoenix.Router.RoutingTest.SomePlug\r\n Parameters: %{}\r\n Pipelines: [:noop]\r\n"
stacktrace:
test/phoenix/router/routing_test.exs:272: (test)
....
36) test logging logs controller and action with filtered parameters (Phoenix.Router.RoutingTest)
test/phoenix/router/routing_test.exs:263
Assertion with =~ failed
code: assert capture_log(fn -> call(Router, :get, "/users/1", password: "bar") end) =~
"[debug] Processing with Phoenix.Router.RoutingTest.UserController.show/2\r\n Parameters: %{\"id\" => \"1\", \"password\" => \"[FILTERED]\"}\r\n Pipelines: []\r\n"
left: "\n17:29:09.855 [debug] Processing with Phoenix.Router.RoutingTest.UserController.show/2\n Parameters: %{\"id\" => \"1\", \"password\" => \"[FILTERED]\"}\n Pipelines: []\n"
right: "[debug] Processing with Phoenix.Router.RoutingTest.UserController.show/2\r\n Parameters: %{\"id\" => \"1\", \"password\" => \"[FILTERED]\"}\r\n Pipelines: []\r\n"
stacktrace:
test/phoenix/router/routing_test.exs:264: (test)
..............................................................................................................................................
37) test top-level named route (Phoenix.Router.HelpersTest)
test/phoenix/router/helpers_test.exs:155
Wrong message for ArgumentError
expected:
"no action :skip for Phoenix.Router.HelpersTest.Router.Helpers.post_path/3. The following actions/clauses are supported:\r\n\r\n post_path(conn_or_endpoint, :file, file, params \\\\ [])\r\n post_path(conn_or_endpoint, :show, id, params \\\\ [])"
actual:
"no action :skip for Phoenix.Router.HelpersTest.Router.Helpers.post_path/3. The following actions/clauses are supported:\n\n post_path(conn_or_endpoint, :file, file, params \\\\ [])\n post_path(conn_or_endpoint, :show, id, params \\\\ [])"
code: assert_raise ArgumentError, error_message.("post_path", 3), fn ->
stacktrace:
test/phoenix/router/helpers_test.exs:183: (test)
................................................................................................................................
38) test --database option when the database is mssql (Mix.Tasks.Phx.Gen.AuthTest)
test/mix/tasks/phx.gen.auth_test.exs:883
Assertion with =~ failed
code: assert file =~ ~r"add :email, :string, null: false, size: 160$"m
left: "defmodule MyApp.Repo.Migrations.CreateUsersAuthTables do\r\n use Ecto.Migration\r\n\r\n def change do\r\n create table(:users) do\r\n add :email, :string, null: false, size: 160\r\n add :hashed_password, :string, null: false\r\n add :confirmed_at, :naive_datetime\r\n timestamps()\r\n end\r\n\r\n create unique_index(:users, [:email])\r\n\r\n create table(:users_tokens) do\r\n add :user_id, references(:users, on_delete: :delete_all), null: false\r\n add :token, :binary, null: false, size: 32\r\n add :context, :string, null: false\r\n add :sent_to, :string\r\n timestamps(updated_at: false)\r\n end\r\n\r\n create index(:users_tokens, [:user_id])\r\n create unique_index(:users_tokens, [:context, :token])\r\n end\r\nend\r\n"
right: ~r/add :email, :string, null: false, size: 160$/m
stacktrace:
test/mix/tasks/phx.gen.auth_test.exs:897: anonymous fn/0 in Mix.Tasks.Phx.Gen.AuthTest."test --database option when the database is mssql"/1
(mix 1.14.5) lib/mix/project.ex:397: Mix.Project.in_project/4
(elixir 1.14.5) lib/file.ex:1607: File.cd!/2
(ex_unit 1.14.5) lib/ex_unit/capture_io.ex:243: ExUnit.CaptureIO.do_with_io/3
(ex_unit 1.14.5) lib/ex_unit/capture_io.ex:119: ExUnit.CaptureIO.capture_io/2
installer/test/mix_helper.exs:78: MixHelper.in_project/3
(elixir 1.14.5) lib/file.ex:1607: File.cd!/2
installer/test/mix_helper.exs:23: MixHelper.in_tmp/2
test/mix/tasks/phx.gen.auth_test.exs:884: (test)
39) test --database option when the database is postgres (Mix.Tasks.Phx.Gen.AuthTest)
test/mix/tasks/phx.gen.auth_test.exs:721
Assertion with =~ failed
code: assert file =~ ~r"execute \"CREATE EXTENSION IF NOT EXISTS citext\", \"\"$"m
left: "defmodule MyApp.Repo.Migrations.CreateUsersAuthTables do\r\n use Ecto.Migration\r\n\r\n def change do\r\n execute \"CREATE EXTENSION IF NOT EXISTS citext\", \"\"\r\n\r\n create table(:users) do\r\n add :email, :citext, null: false\r\n add :hashed_password, :string, null: false\r\n add :confirmed_at, :naive_datetime\r\n timestamps()\r\n end\r\n\r\n create unique_index(:users, [:email])\r\n\r\n create table(:users_tokens) do\r\n add :user_id, references(:users, on_delete: :delete_all), null: false\r\n add :token, :binary, null: false\r\n add :context, :string, null: false\r\n add :sent_to, :string\r\n timestamps(updated_at: false)\r\n end\r\n\r\n create index(:users_tokens, [:user_id])\r\n create unique_index(:users_tokens, [:context, :token])\r\n end\r\nend\r\n"
right: ~r/execute "CREATE EXTENSION IF NOT EXISTS citext", ""$/m
stacktrace:
test/mix/tasks/phx.gen.auth_test.exs:736: anonymous fn/1 in Mix.Tasks.Phx.Gen.AuthTest."test --database option when the database is postgres"/1
test/mix/tasks/phx.gen.auth_test.exs:735: anonymous fn/0 in Mix.Tasks.Phx.Gen.AuthTest."test --database option when the database is postgres"/1
(mix 1.14.5) lib/mix/project.ex:397: Mix.Project.in_project/4
(elixir 1.14.5) lib/file.ex:1607: File.cd!/2
(ex_unit 1.14.5) lib/ex_unit/capture_io.ex:243: ExUnit.CaptureIO.do_with_io/3
(ex_unit 1.14.5) lib/ex_unit/capture_io.ex:119: ExUnit.CaptureIO.capture_io/2
installer/test/mix_helper.exs:78: MixHelper.in_project/3
(elixir 1.14.5) lib/file.ex:1607: File.cd!/2
installer/test/mix_helper.exs:23: MixHelper.in_tmp/2
test/mix/tasks/phx.gen.auth_test.exs:722: (test)
40) test --database option when the database is sqlite3 (Mix.Tasks.Phx.Gen.AuthTest)
test/mix/tasks/phx.gen.auth_test.exs:829
Assertion with =~ failed
code: assert file =~ ~r"add :email, :string, null: false, collate: :nocase$"m
left: "defmodule MyApp.Repo.Migrations.CreateUsersAuthTables do\r\n use Ecto.Migration\r\n\r\n def change do\r\n create table(:users) do\r\n add :email, :string, null: false, collate: :nocase\r\n add :hashed_password, :string, null: false\r\n add :confirmed_at, :naive_datetime\r\n timestamps()\r\n end\r\n\r\n create unique_index(:users, [:email])\r\n\r\n create table(:users_tokens) do\r\n add :user_id, references(:users, on_delete: :delete_all), null: false\r\n add :token, :binary, null: false, size: 32\r\n add :context, :string, null: false\r\n add :sent_to, :string\r\n timestamps(updated_at: false)\r\n end\r\n\r\n create index(:users_tokens, [:user_id])\r\n create unique_index(:users_tokens, [:context, :token])\r\n end\r\nend\r\n"
right: ~r/add :email, :string, null: false, collate: :nocase$/m
stacktrace:
test/mix/tasks/phx.gen.auth_test.exs:843: anonymous fn/0 in Mix.Tasks.Phx.Gen.AuthTest."test --database option when the database is sqlite3"/1
(mix 1.14.5) lib/mix/project.ex:397: Mix.Project.in_project/4
(elixir 1.14.5) lib/file.ex:1607: File.cd!/2
(ex_unit 1.14.5) lib/ex_unit/capture_io.ex:243: ExUnit.CaptureIO.do_with_io/3
(ex_unit 1.14.5) lib/ex_unit/capture_io.ex:119: ExUnit.CaptureIO.capture_io/2
installer/test/mix_helper.exs:78: MixHelper.in_project/3
(elixir 1.14.5) lib/file.ex:1607: File.cd!/2
installer/test/mix_helper.exs:23: MixHelper.in_tmp/2
test/mix/tasks/phx.gen.auth_test.exs:830: (test)
41) test --database option when the database is mysql (Mix.Tasks.Phx.Gen.AuthTest)
test/mix/tasks/phx.gen.auth_test.exs:775
Assertion with =~ failed
code: assert file =~ ~r"add :email, :string, null: false, size: 160$"m
left: "defmodule MyApp.Repo.Migrations.CreateUsersAuthTables do\r\n use Ecto.Migration\r\n\r\n def change do\r\n create table(:users) do\r\n add :email, :string, null: false, size: 160\r\n add :hashed_password, :string, null: false\r\n add :confirmed_at, :naive_datetime\r\n timestamps()\r\n end\r\n\r\n create unique_index(:users, [:email])\r\n\r\n create table(:users_tokens) do\r\n add :user_id, references(:users, on_delete: :delete_all), null: false\r\n add :token, :binary, null: false, size: 32\r\n add :context, :string, null: false\r\n add :sent_to, :string\r\n timestamps(updated_at: false)\r\n end\r\n\r\n create index(:users_tokens, [:user_id])\r\n create unique_index(:users_tokens, [:context, :token])\r\n end\r\nend\r\n"
right: ~r/add :email, :string, null: false, size: 160$/m
stacktrace:
test/mix/tasks/phx.gen.auth_test.exs:789: anonymous fn/0 in Mix.Tasks.Phx.Gen.AuthTest."test --database option when the database is mysql"/1
(mix 1.14.5) lib/mix/project.ex:397: Mix.Project.in_project/4
(elixir 1.14.5) lib/file.ex:1607: File.cd!/2
(ex_unit 1.14.5) lib/ex_unit/capture_io.ex:243: ExUnit.CaptureIO.do_with_io/3
(ex_unit 1.14.5) lib/ex_unit/capture_io.ex:119: ExUnit.CaptureIO.capture_io/2
installer/test/mix_helper.exs:78: MixHelper.in_project/3
(elixir 1.14.5) lib/file.ex:1607: File.cd!/2
installer/test/mix_helper.exs:23: MixHelper.in_tmp/2
test/mix/tasks/phx.gen.auth_test.exs:776: (test)
42) test generates with --web option (Mix.Tasks.Phx.Gen.AuthTest)
test/mix/tasks/phx.gen.auth_test.exs:492
Assertion with =~ failed
code: assert file =~
~s"<.simple_form\n :let={f}\n for={@password_changeset}\n action={~p\"/warehouse/users/settings\"}\n id=\"update_password\"\n >"
left: "<.header class=\"text-center\">\r\n Account Settings\r\n <:subtitle>Manage your account email address and password settings</:subtitle>\r\n</.header>\r\n\r\n<div class=\"space-y-12 divide-y\">\r\n <div>\r\n <.simple_form :let={f} for={@email_changeset} action={~p\"/warehouse/users/settings\"} id=\"update_email\">\r\n <.error :if={@email_changeset.action}>\r\n Oops, something went wrong! Please check the errors below.\r\n </.error>\r\n\r\n <.input field={f[:action]} type=\"hidden\" name=\"action\" value=\"update_email\" />\r\n\r\n <.input field={f[:email]} type=\"email\" label=\"Email\" required />\r\n <.input\r\n field={f[:current_password]}\r\n name=\"current_password\"\r\n type=\"password\"\r\n label=\"Current Password\"\r\n required\r\n id=\"current_password_for_email\"\r\n />\r\n <:actions>\r\n <.button phx-disable-with=\"Changing...\">Change Email</.button>\r\n </:actions>\r\n </.simple_form>\r\n </div>\r\n <div>\r\n <.simple_form\r\n :let={f}\r\n for={@password_changeset}\r\n action={~p\"/warehouse/users/settings\"}\r\n id=\"update_password\"\r\n >\r\n <.error :if={@password_changeset.action}>\r\n Oops, something went wrong! Please check the errors below.\r\n </.error>\r\n\r\n <.input field={f[:action]} type=\"hidden\" name=\"action\" value=\"update_password\" />\r\n\r\n <.input field={f[:password]} type=\"password\" label=\"New password\" required />\r\n <.input\r\n field={f[:password_confirmation]}\r\n type=\"password\"\r\n label=\"Confirm new password\"\r\n required\r\n />\r\n\r\n <.input\r\n field={f[:current_password]}\r\n name=\"current_password\"\r\n type=\"password\"\r\n label=\"Current password\"\r\n id=\"current_password_for_password\"\r\n required\r\n />\r\n <:actions>\r\n <.button phx-disable-with=\"Changing...\">Change Password</.button>\r\n </:actions>\r\n </.simple_form>\r\n </div>\r\n</div>\r\n"
right: "<.simple_form\n :let={f}\n for={@password_changeset}\n action={~p\"/warehouse/users/settings\"}\n id=\"update_password\"\n >"
stacktrace:
test/mix/tasks/phx.gen.auth_test.exs:647: anonymous fn/0 in Mix.Tasks.Phx.Gen.AuthTest."test generates with --web option"/1
(mix 1.14.5) lib/mix/project.ex:397: Mix.Project.in_project/4
(elixir 1.14.5) lib/file.ex:1607: File.cd!/2
(ex_unit 1.14.5) lib/ex_unit/capture_io.ex:243: ExUnit.CaptureIO.do_with_io/3
(ex_unit 1.14.5) lib/ex_unit/capture_io.ex:119: ExUnit.CaptureIO.capture_io/2
installer/test/mix_helper.exs:78: MixHelper.in_project/3
(elixir 1.14.5) lib/file.ex:1607: File.cd!/2
installer/test/mix_helper.exs:23: MixHelper.in_tmp/2
test/mix/tasks/phx.gen.auth_test.exs:493: (test)
43) test generates with defaults (Prompt: --no-live) (Mix.Tasks.Phx.Gen.AuthTest)
test/mix/tasks/phx.gen.auth_test.exs:87
** (File.Error) could not make directory (with -p) "c:/Users/varsh/Documents/phoenix/tmp/t4x8xk+gOC/test generates with defaults (Prompt: --no-live)": I/O error
stacktrace:
(elixir 1.14.5) lib/file.ex:319: File.mkdir_p!/1
installer/test/mix_helper.exs:22: MixHelper.in_tmp/2
test/mix/tasks/phx.gen.auth_test.exs:88: (test)
.....
44) test --hashing-lib option when argon2 (Mix.Tasks.Phx.Gen.AuthTest)
test/mix/tasks/phx.gen.auth_test.exs:1023
Assertion with =~ failed
code: assert file =~ "config :argon2_elixir, t_cost: 1, m_cost: 8\r\n"
left: "import Config\n\n# Only in tests, remove the complexity from the password hashing algorithm\r\nconfig :argon2_elixir, t_cost: 1, m_cost: 8\n\n# Configure your database\n#\n# The MIX_TEST_PARTITION environment variable can be used\n# to provide built-in test partitioning in CI environment.\n# Run `mix help test` for more information.\nconfig :my_app, MyApp.Repo,\n username: \"postgres\",\n password: \"postgres\",\n hostname: \"localhost\",\n database: \"my_app_test\#{System.get_env(\"MIX_TEST_PARTITION\")}\",\n pool: Ecto.Adapters.SQL.Sandbox,\n pool_size: 10\n\n# We don't run a server during test. If one is required,\n# you can enable the server option below.\nconfig :my_app, MyAppWeb.Endpoint,\n http: [ip: {127, 0, 0, 1}, port: 4002],\n secret_key_base: \"7FjjWYRVaK8OSOQqmAQfoZcEfto3c4GiLOzqMn8Nl+vqgV1U27eefTRmSB2gRouG\",\n server: false\n\n# In test we don't send emails.\nconfig :my_app, MyApp.Mailer, adapter: Swoosh.Adapters.Test\n\n# Disable swoosh api client as it is only required for production adapters.\nconfig :swoosh, :api_client, false\n\n# Print only warnings and errors during test\nconfig :logger, level: :warning\n\n# Initialize plugs at runtime for faster test compilation\nconfig :phoenix, :plug_init_mode, :runtime\n"
right: "config :argon2_elixir, t_cost: 1, m_cost: 8\r\n"
stacktrace:
test/mix/tasks/phx.gen.auth_test.exs:1039: anonymous fn/0 in Mix.Tasks.Phx.Gen.AuthTest."test --hashing-lib option when argon2"/1
(mix 1.14.5) lib/mix/project.ex:397: Mix.Project.in_project/4
(elixir 1.14.5) lib/file.ex:1607: File.cd!/2
(ex_unit 1.14.5) lib/ex_unit/capture_io.ex:243: ExUnit.CaptureIO.do_with_io/3
(ex_unit 1.14.5) lib/ex_unit/capture_io.ex:119: ExUnit.CaptureIO.capture_io/2
installer/test/mix_helper.exs:78: MixHelper.in_project/3
(elixir 1.14.5) lib/file.ex:1607: File.cd!/2
installer/test/mix_helper.exs:23: MixHelper.in_tmp/2
test/mix/tasks/phx.gen.auth_test.exs:1024: (test)
.
45) test user prompts when unable to inject dependencies in mix.exs (Mix.Tasks.Phx.Gen.AuthTest)
test/mix/tasks/phx.gen.auth_test.exs:1228
Assertion failed, no matching message after 0ms
Showing 10 of 94 messages in the mailbox
code: assert_received {:mix_shell, :info,
[
"\r\nAdd your {:bcrypt_elixir, \"~> 3.0\"} dependency to mix.exs:\r\n\r\n defp deps do\r\n [\r\n {:bcrypt_elixir, \"~> 3.0\"},\r\n ...\r\n ]\r\n end\r\n"
]}
mailbox:
pattern: {:mix_shell, :info,
[
"\r\nAdd your {:bcrypt_elixir, \"~> 3.0\"} dependency to mix.exs:\r\n\r\n defp deps do\r\n [\r\n {:bcrypt_elixir, \"~> 3.0\"},\r\n ...\r\n ]\r\n end\r\n"
]}
value: {:mix_shell, :info,
["* injecting test/support/fixtures/accounts_fixtures.ex"]}
pattern: {:mix_shell, :info,
[
"\r\nAdd your {:bcrypt_elixir, \"~> 3.0\"} dependency to mix.exs:\r\n\r\n defp deps do\r\n [\r\n {:bcrypt_elixir, \"~> 3.0\"},\r\n ...\r\n ]\r\n end\r\n"
]}
value: {:mix_shell, :info, ["* injecting test/support/conn_case.ex"]}
pattern: {:mix_shell, :info,
[
"\r\nAdd your {:bcrypt_elixir, \"~> 3.0\"} dependency to mix.exs:\r\n\r\n defp deps do\r\n [\r\n {:bcrypt_elixir, \"~> 3.0\"},\r\n ...\r\n ]\r\n end\r\n"
]}
value: {:mix_shell, :info, ["* injecting config/test.exs"]}
pattern: {:mix_shell, :info,
[
"\r\nAdd your {:bcrypt_elixir, \"~> 3.0\"} dependency to mix.exs:\r\n\r\n defp deps do\r\n [\r\n {:bcrypt_elixir, \"~> 3.0\"},\r\n ...\r\n ]\r\n end\r\n"
]}
value: {:mix_shell, :info,
["\r\nAdd your {:pbkdf2_elixir, \"~> 2.0\"} dependency to mix.exs:\r\n\r\n defp deps do\r\n [\r\n {:pbkdf2_elixir, \"~> 2.0\"},\r\n ...\r\n ]\r\n end\r\n"]}
pattern: {:mix_shell, :info,
[
"\r\nAdd your {:bcrypt_elixir, \"~> 3.0\"} dependency to mix.exs:\r\n\r\n defp deps do\r\n [\r\n {:bcrypt_elixir, \"~> 3.0\"},\r\n ...\r\n ]\r\n end\r\n"
]}
value: {:mix_shell, :info, ["* injecting lib/my_app_web/router.ex"]}
pattern: {:mix_shell, :info,
[
"\r\nAdd your {:bcrypt_elixir, \"~> 3.0\"} dependency to mix.exs:\r\n\r\n defp deps do\r\n [\r\n {:bcrypt_elixir, \"~> 3.0\"},\r\n ...\r\n ]\r\n end\r\n"
]}
value: {:mix_shell, :info,
["* injecting lib/my_app_web/router.ex - imports"]}
pattern: {:mix_shell, :info,
[
"\r\nAdd your {:bcrypt_elixir, \"~> 3.0\"} dependency to mix.exs:\r\n\r\n defp deps do\r\n [\r\n {:bcrypt_elixir, \"~> 3.0\"},\r\n ...\r\n ]\r\n end\r\n"
]}
value: {:mix_shell, :info,
["* injecting lib/my_app_web/router.ex - plug"]}
pattern: {:mix_shell, :info,
[
"\r\nAdd your {:bcrypt_elixir, \"~> 3.0\"} dependency to mix.exs:\r\n\r\n defp deps do\r\n [\r\n {:bcrypt_elixir, \"~> 3.0\"},\r\n ...\r\n ]\r\n end\r\n"
]}
value: {:mix_shell, :info,
["* injecting lib/my_app_web/components/layouts/root.html.heex"]}
pattern: {:mix_shell, :info,
[
"\r\nAdd your {:bcrypt_elixir, \"~> 3.0\"} dependency to mix.exs:\r\n\r\n defp deps do\r\n [\r\n {:bcrypt_elixir, \"~> 3.0\"},\r\n ...\r\n ]\r\n end\r\n"
]}
value: {:mix_shell, :info,
["Unable to find the \"MyApp.Mailer\" module defined.\r\n\r\nA mailer module like the following is expected to be defined\r\nin your application in order to send emails.\r\n\r\n defmodule MyApp.Mailer do\r\n use Swoosh.Mailer, otp_app: :my_app\r\n end\r\n\r\nIt is also necessary to add \"swoosh\" as a dependency in your\r\n\"mix.exs\" file:\r\n\r\n def deps do\r\n [{:swoosh, \"~> 1.4\"}]\r\n end\r\n\r\nFinally, an adapter needs to be set in your configuration:\r\n\r\n import Config\r\n config :my_app, MyApp.Mailer, adapter: Swoosh.Adapters.Local\r\n\r\nCheck https://hexdocs.pm/swoosh for more details.\r\n"]}
pattern: {:mix_shell, :info,
[
"\r\nAdd your {:bcrypt_elixir, \"~> 3.0\"} dependency to mix.exs:\r\n\r\n defp deps do\r\n [\r\n {:bcrypt_elixir, \"~> 3.0\"},\r\n ...\r\n ]\r\n end\r\n"
]}
value: {:mix_shell, :info,
["\r\nPlease re-fetch your dependencies with the following command:\r\n\r\n $ mix deps.get\r\n\r\nRemember to update your repository by running migrations:\r\n\r\n $ mix ecto.migrate\r\n\r\nOnce you are ready, visit \"/users/register\"\r\nto create your account and then access \"/dev/mailbox\" to\r\nsee the account confirmation email.\r\n"]}
stacktrace:
test/mix/tasks/phx.gen.auth_test.exs:1242: anonymous fn/0 in Mix.Tasks.Phx.Gen.AuthTest."test user prompts when unable to inject dependencies in mix.exs"/1
(mix 1.14.5) lib/mix/project.ex:397: Mix.Project.in_project/4
(elixir 1.14.5) lib/file.ex:1607: File.cd!/2
(ex_unit 1.14.5) lib/ex_unit/capture_io.ex:243: ExUnit.CaptureIO.do_with_io/3
(ex_unit 1.14.5) lib/ex_unit/capture_io.ex:119: ExUnit.CaptureIO.capture_io/2
installer/test/mix_helper.exs:78: MixHelper.in_project/3
(elixir 1.14.5) lib/file.ex:1607: File.cd!/2
installer/test/mix_helper.exs:23: MixHelper.in_tmp/2
test/mix/tasks/phx.gen.auth_test.exs:1229: (test)
.
46) test generates with defaults (Prompt: --live) (Mix.Tasks.Phx.Gen.AuthTest)
test/mix/tasks/phx.gen.auth_test.exs:224
** (File.Error) could not make directory (with -p) "c:/Users/varsh/Documents/phoenix/tmp/cYwtMZJxSy/test generates with defaults (Prompt: --live)": I/O error
code: in_tmp_phx_project(config.test, fn ->
stacktrace:
(elixir 1.14.5) lib/file.ex:319: File.mkdir_p!/1
installer/test/mix_helper.exs:22: MixHelper.in_tmp/2
test/mix/tasks/phx.gen.auth_test.exs:225: (test)
.
47) test user prompts when layout file is not found (Mix.Tasks.Phx.Gen.AuthTest)
test/mix/tasks/phx.gen.auth_test.exs:1328
Assertion with == failed
code: assert error ==
"\r\nUnable to find an application layout file to inject user menu items.\r\n\r\nMissing files:\r\n\r\n * lib/my_app_web/components/layouts/root.html.heex\r\n * lib/my_app_web/components/layouts/app.html.heex\r\n\r\nPlease ensure this phoenix app was not generated with\r\n--no-html. If you have changed the name of your application\r\nlayout file, please add the following code to it where you'd\r\nlike the user menu items to be rendered.\r\n\r\n <ul class=\"relative z-10 flex items-center gap-4 px-4 sm:px-6 lg:px-8 justify-end\">\r\n <%= if @current_user do %>\r\n <li class=\"text-[0.8125rem] leading-6 text-zinc-900\">\r\n <%= @current_user.email %>\r\n </li>\r\n <li>\r\n <.link\r\n href={~p\"/users/settings\"}\r\n class=\"text-[0.8125rem] leading-6 text-zinc-900 font-semibold hover:text-zinc-700\"\r\n >\r\n Settings\r\n </.link>\r\n </li>\r\n <li>\r\n <.link\r\n href={~p\"/users/log_out\"}\r\n method=\"delete\"\r\n class=\"text-[0.8125rem] leading-6 text-zinc-900 font-semibold hover:text-zinc-700\"\r\n
>\r\n Log out\r\n </.link>\r\n </li>\r\n <% else %>\r\n <li>\r\n <.link\r\n href={~p\"/users/register\"}\r\n class=\"text-[0.8125rem] leading-6 text-zinc-900 font-semibold hover:text-zinc-700\"\r\n >\r\n Register\r\n </.link>\r\n </li>\r\n <li>\r\n <.link\r\n href={~p\"/users/log_in\"}\r\n class=\"text-[0.8125rem] leading-6 text-zinc-900 font-semibold hover:text-zinc-700\"\r\n >\r\n Log in\r\n </.link>\r\n </li>\r\n <% end %>\r\n </ul>\r\n"
left: "\r\nUnable to find an application layout file to inject user menu items.\r\n\r\nMissing files:\r\n\r\n * lib/my_app_web/components/layouts/root.html.heex\n * lib/my_app_web/components/layouts/app.html.heex\r\n\r\nPlease ensure this phoenix app was not generated with\r\n--no-html. If you have changed the name of your application\r\nlayout file, please add the following code to it where you'd\r\nlike the user menu items to be rendered.\r\n\r\n <ul class=\"relative z-10 flex items-center gap-4 px-4 sm:px-6 lg:px-8 justify-end\">\r\n <%= if @current_user do %>\r\n <li class=\"text-[0.8125rem] leading-6 text-zinc-900\">\r\n <%= @current_user.email %>\r\n </li>\r\n <li>\r\n <.link\r\n href={~p\"/users/settings\"}\r\n class=\"text-[0.8125rem] leading-6 text-zinc-900 font-semibold hover:text-zinc-700\"\r\n >\r\n Settings\r\n </.link>\r\n </li>\r\n <li>\r\n <.link\r\n href={~p\"/users/log_out\"}\r\n method=\"delete\"\r\n class=\"text-[0.8125rem] leading-6 text-zinc-900 font-semibold hover:text-zinc-700\"\r\n >\r\n Log out\r\n </.link>\r\n </li>\r\n <% else %>\r\n <li>\r\n <.link\r\n href={~p\"/users/register\"}\r\n class=\"text-[0.8125rem] leading-6 text-zinc-900 font-semibold hover:text-zinc-700\"\r\n >\r\n Register\r\n </.link>\r\n </li>\r\n <li>\r\n <.link\r\n href={~p\"/users/log_in\"}\r\n class=\"text-[0.8125rem] leading-6 text-zinc-900 font-semibold hover:text-zinc-700\"\r\n >\r\n Log in\r\n </.link>\r\n </li>\r\n <% end %>\r\n </ul>\r\n"
right: "\r\nUnable to find an application layout file to inject user menu items.\r\n\r\nMissing files:\r\n\r\n * lib/my_app_web/components/layouts/root.html.heex\r\n * lib/my_app_web/components/layouts/app.html.heex\r\n\r\nPlease ensure this phoenix app was not generated with\r\n--no-html. If you have changed the name of your application\r\nlayout file, please add the following code to it where you'd\r\nlike the user menu items to be rendered.\r\n\r\n <ul class=\"relative z-10 flex items-center gap-4 px-4 sm:px-6 lg:px-8 justify-end\">\r\n <%= if @current_user do %>\r\n <li class=\"text-[0.8125rem] leading-6 text-zinc-900\">\r\n <%= @current_user.email %>\r\n </li>\r\n <li>\r\n <.link\r\n href={~p\"/users/settings\"}\r\n class=\"text-[0.8125rem] leading-6 text-zinc-900 font-semibold hover:text-zinc-700\"\r\n >\r\n Settings\r\n </.link>\r\n </li>\r\n <li>\r\n <.link\r\n href={~p\"/users/log_out\"}\r\n method=\"delete\"\r\n class=\"text-[0.8125rem] leading-6 text-zinc-900 font-semibold hover:text-zinc-700\"\r\n >\r\n Log out\r\n </.link>\r\n </li>\r\n <% else %>\r\n <li>\r\n <.link\r\n href={~p\"/users/register\"}\r\n class=\"text-[0.8125rem] leading-6 text-zinc-900 font-semibold hover:text-zinc-700\"\r\n >\r\n Register\r\n </.link>\r\n </li>\r\n <li>\r\n <.link\r\n href={~p\"/users/log_in\"}\r\n class=\"text-[0.8125rem] leading-6 text-zinc-900 font-semibold hover:text-zinc-700\"\r\n >\r\n Log in\r\n </.link>\r\n </li>\r\n <% end %>\r\n </ul>\r\n"
stacktrace:
(mix 1.14.5) lib/mix/project.ex:397: Mix.Project.in_project/4
(elixir 1.14.5) lib/file.ex:1607: File.cd!/2
(ex_unit 1.14.5) lib/ex_unit/capture_io.ex:243: ExUnit.CaptureIO.do_with_io/3
(ex_unit 1.14.5) lib/ex_unit/capture_io.ex:119: ExUnit.CaptureIO.capture_io/2
installer/test/mix_helper.exs:78: MixHelper.in_project/3
(elixir 1.14.5) lib/file.ex:1607: File.cd!/2
installer/test/mix_helper.exs:23: MixHelper.in_tmp/2
test/mix/tasks/phx.gen.auth_test.exs:1329: (test)
48) test user prompts when unable to inject plugs into router.ex (Mix.Tasks.Phx.Gen.AuthTest)
test/mix/tasks/phx.gen.auth_test.exs:1295
Assertion failed, no matching message after 0ms
Showing 10 of 94 messages in the mailbox
code: assert_received {:mix_shell, :info,
[
"\r\nAdd the :fetch_current_user plug to the :browser pipeline in lib/my_app_web/router.ex:\r\n\r\n pipeline :browser do\r\n ...\r\n plug :put_secure_browser_headers\r\n plug :fetch_current_user\r\n end\r\n\r\n"
]}
mailbox:
pattern: {:mix_shell, :info,
[
"\r\nAdd the :fetch_current_user plug to the :browser pipeline in lib/my_app_web/router.ex:\r\n\r\n pipeline :browser do\r\n ...\r\n plug :put_secure_browser_headers\r\n plug :fetch_current_user\r\n end\r\n\r\n"
]}
value: {:mix_shell, :info,
["* injecting test/support/fixtures/accounts_fixtures.ex"]}
pattern: {:mix_shell, :info,
[
"\r\nAdd the :fetch_current_user plug to the :browser pipeline in lib/my_app_web/router.ex:\r\n\r\n pipeline :browser do\r\n ...\r\n plug :put_secure_browser_headers\r\n plug :fetch_current_user\r\n end\r\n\r\n"
]}
value: {:mix_shell, :info, ["* injecting test/support/conn_case.ex"]}
pattern: {:mix_shell, :info,
[
"\r\nAdd the :fetch_current_user plug to the :browser pipeline in lib/my_app_web/router.ex:\r\n\r\n pipeline :browser do\r\n ...\r\n plug :put_secure_browser_headers\r\n plug :fetch_current_user\r\n end\r\n\r\n"
]}
value: {:mix_shell, :info, ["* injecting config/test.exs"]}
pattern: {:mix_shell, :info,
[
"\r\nAdd the :fetch_current_user plug to the :browser pipeline in lib/my_app_web/router.ex:\r\n\r\n pipeline :browser do\r\n ...\r\n plug :put_secure_browser_headers\r\n plug :fetch_current_user\r\n end\r\n\r\n"
]}
value: {:mix_shell, :info, ["* injecting mix.exs"]}
pattern: {:mix_shell, :info,
[
"\r\nAdd the :fetch_current_user plug to the :browser pipeline in lib/my_app_web/router.ex:\r\n\r\n pipeline :browser do\r\n ...\r\n plug :put_secure_browser_headers\r\n plug :fetch_current_user\r\n end\r\n\r\n"
]}
value: {:mix_shell, :info, ["* injecting lib/my_app_web/router.ex"]}
pattern: {:mix_shell, :info,
[
"\r\nAdd the :fetch_current_user plug to the :browser pipeline in lib/my_app_web/router.ex:\r\n\r\n pipeline :browser do\r\n ...\r\n plug :put_secure_browser_headers\r\n plug :fetch_current_user\r\n end\r\n\r\n"
]}
value: {:mix_shell, :info,
["* injecting lib/my_app_web/router.ex - imports"]}
pattern: {:mix_shell, :info,
[
"\r\nAdd the :fetch_current_user plug to the :browser pipeline in lib/my_app_web/router.ex:\r\n\r\n pipeline :browser do\r\n ...\r\n plug :put_secure_browser_headers\r\n plug :fetch_current_user\r\n end\r\n\r\n"
]}
value: {:mix_shell, :info,
["* injecting lib/my_app_web/router.ex - plug"]}
pattern: {:mix_shell, :info,
[
"\r\nAdd the :fetch_current_user plug to the :browser pipeline in lib/my_app_web/router.ex:\r\n\r\n pipeline :browser do\r\n ...\r\n plug :put_secure_browser_headers\r\n plug :fetch_current_user\r\n end\r\n\r\n"
]}
value: {:mix_shell, :info,
["* injecting lib/my_app_web/components/layouts/root.html.heex"]}
pattern: {:mix_shell, :info,
[
"\r\nAdd the :fetch_current_user plug to the :browser pipeline in lib/my_app_web/router.ex:\r\n\r\n pipeline :browser do\r\n ...\r\n plug :put_secure_browser_headers\r\n plug :fetch_current_user\r\n end\r\n\r\n"
]}
value: {:mix_shell, :info,
["Unable to find the \"MyApp.Mailer\" module defined.\r\n\r\nA mailer module like the following is expected to be defined\r\nin your application in order to send emails.\r\n\r\n defmodule MyApp.Mailer do\r\n use Swoosh.Mailer, otp_app: :my_app\r\n end\r\n\r\nIt is also necessary to add \"swoosh\" as a dependency in your\r\n\"mix.exs\" file:\r\n\r\n def deps do\r\n [{:swoosh, \"~> 1.4\"}]\r\n end\r\n\r\nFinally, an adapter needs to be set in your configuration:\r\n\r\n import Config\r\n config :my_app, MyApp.Mailer, adapter: Swoosh.Adapters.Local\r\n\r\nCheck https://hexdocs.pm/swoosh for more details.\r\n"]}
pattern: {:mix_shell, :info,
[
"\r\nAdd the :fetch_current_user plug to the :browser pipeline in lib/my_app_web/router.ex:\r\n\r\n pipeline :browser do\r\n ...\r\n plug :put_secure_browser_headers\r\n plug :fetch_current_user\r\n end\r\n\r\n"
]}
value: {:mix_shell, :info,
["\r\nPlease re-fetch your dependencies with the following command:\r\n\r\n $ mix deps.get\r\n\r\nRemember to update your repository by running migrations:\r\n\r\n $ mix ecto.migrate\r\n\r\nOnce you are ready, visit \"/users/register\"\r\nto create your account and then access \"/dev/mailbox\" to\r\nsee the account confirmation email.\r\n"]}
stacktrace:
test/mix/tasks/phx.gen.auth_test.exs:1311: anonymous fn/0 in Mix.Tasks.Phx.Gen.AuthTest."test user prompts when unable to inject plugs into router.ex"/1
(mix 1.14.5) lib/mix/project.ex:397: Mix.Project.in_project/4
(elixir 1.14.5) lib/file.ex:1607: File.cd!/2
(ex_unit 1.14.5) lib/ex_unit/capture_io.ex:243: ExUnit.CaptureIO.do_with_io/3
(ex_unit 1.14.5) lib/ex_unit/capture_io.ex:119: ExUnit.CaptureIO.capture_io/2
installer/test/mix_helper.exs:78: MixHelper.in_project/3
(elixir 1.14.5) lib/file.ex:1607: File.cd!/2
installer/test/mix_helper.exs:23: MixHelper.in_tmp/2
test/mix/tasks/phx.gen.auth_test.exs:1296: (test)
.......................
49) test generates schema without extra line break (Mix.Tasks.Phx.Gen.SchemaTest)
test/mix/tasks/phx.gen.schema_test.exs:325
Assertion with =~ failed
code: assert file =~ "import Ecto.Changeset\n\n schema"
left: "defmodule Phoenix.Blog.Post do\r\n use Ecto.Schema\r\n import Ecto.Changeset\r\n\r\n schema \"posts\" do\r\n field :title, :string\r\n\r\n timestamps()\r\n end\r\n\r\n @doc false\r\n def changeset(post, attrs) do\r\n post\r\n |> cast(attrs, [:title])\r\n |> validate_required([:title])\r\n end\r\nend\r\n"
right: "import Ecto.Changeset\n\n schema"
stacktrace:
(elixir 1.14.5) lib/file.ex:1607: File.cd!/2
installer/test/mix_helper.exs:36: MixHelper.in_tmp_project/2
test/mix/tasks/phx.gen.schema_test.exs:326: (test)
........
50) test in an umbrella with a context_app, generates the files (Mix.Tasks.Phx.Gen.SocketTest)
test/mix/tasks/phx.gen.socket_test.exs:60
Assertion failed, no matching message after 0ms
Showing 3 of 3 messages in the mailbox
code: assert_received {:mix_shell, :info, ["\nAdd the socket handler to your `lib/phoenix/endpoint.ex`" <> _]}
mailbox:
pattern: {:mix_shell, :info, ["\nAdd the socket handler to your `lib/phoenix/endpoint.ex`" <> _]}
value: {:mix_shell, :info,
["* creating lib/phoenix/channels/room_socket.ex"]}
pattern: {:mix_shell, :info, ["\nAdd the socket handler to your `lib/phoenix/endpoint.ex`" <> _]}
value: {:mix_shell, :info, ["* creating assets/js/room_socket.js"]}
pattern: {:mix_shell, :info, ["\nAdd the socket handler to your `lib/phoenix/endpoint.ex`" <> _]}
value: {:mix_shell, :info,
["\r\nAdd the socket handler to your `lib/phoenix/endpoint.ex`, for example:\r\n\r\n socket \"/socket\", PhoenixWeb.RoomSocket,\r\n websocket: true,\r\n longpoll: false\r\n\r\nFor the front-end integration, you need to import the `room_socket.js`\r\nin your `assets/js/app.js` file:\r\n\r\n import \"./room_socket.js\"\r\n"]}
stacktrace:
test/mix/tasks/phx.gen.socket_test.exs:84: (test)
51) test generates nested socket (Mix.Tasks.Phx.Gen.SocketTest)
test/mix/tasks/phx.gen.socket_test.exs:88
Assertion failed, no matching message after 0ms
Showing 3 of 3 messages in the mailbox
code: assert_received {:mix_shell, :info, ["\nAdd the socket handler to your `lib/phoenix_web/endpoint.ex`" <> _]}
mailbox:
pattern: {:mix_shell, :info, ["\nAdd the socket handler to your `lib/phoenix_web/endpoint.ex`" <> _]}
value: {:mix_shell, :info,
["* creating lib/phoenix_web/channels/admin/user_socket.ex"]}
pattern: {:mix_shell, :info, ["\nAdd the socket handler to your `lib/phoenix_web/endpoint.ex`" <> _]}
value: {:mix_shell, :info,
["* creating assets/js/admin/user_socket.js"]}
pattern: {:mix_shell, :info, ["\nAdd the socket handler to your `lib/phoenix_web/endpoint.ex`" <> _]}
value: {:mix_shell, :info,
["\r\nAdd the socket handler to your `lib/phoenix_web/endpoint.ex`, for example:\r\n\r\n socket \"/socket\", PhoenixWeb.Admin.UserSocket,\r\n websocket: true,\r\n longpoll: false\r\n\r\nFor the front-end integration, you need to import the `admin/user_socket.js`\r\nin your `assets/js/app.js` file:\r\n\r\n import \"./admin/user_socket.js\"\r\n"]}
stacktrace:
test/mix/tasks/phx.gen.socket_test.exs:113: (test)
.
52) test generates socket (Mix.Tasks.Phx.Gen.SocketTest)
test/mix/tasks/phx.gen.socket_test.exs:16
Assertion failed, no matching message after 0ms
Showing 3 of 3 messages in the mailbox
code: assert_received {:mix_shell, :info, ["\nAdd the socket handler to your `lib/phoenix_web/endpoint.ex`" <> _]}
mailbox:
pattern: {:mix_shell, :info, ["\nAdd the socket handler to your `lib/phoenix_web/endpoint.ex`" <> _]}
value: {:mix_shell, :info,
["* creating lib/phoenix_web/channels/user_socket.ex"]}
pattern: {:mix_shell, :info, ["\nAdd the socket handler to your `lib/phoenix_web/endpoint.ex`" <> _]}
value: {:mix_shell, :info, ["* creating assets/js/user_socket.js"]}
pattern: {:mix_shell, :info, ["\nAdd the socket handler to your `lib/phoenix_web/endpoint.ex`" <> _]}
value: {:mix_shell, :info,
["\r\nAdd the socket handler to your `lib/phoenix_web/endpoint.ex`, for example:\r\n\r\n socket \"/socket\", PhoenixWeb.UserSocket,\r\n websocket: true,\r\n longpoll: false\r\n\r\nFor the front-end integration, you need to import the `user_socket.js`\r\nin your `assets/js/app.js` file:\r\n\r\n import \"./user_socket.js\"\r\n"]}
stacktrace:
test/mix/tasks/phx.gen.socket_test.exs:43: (test)
......
53) test generates channel and ask to create UserSocket (Mix.Tasks.Phx.Gen.ChannelTest)
test/mix/tasks/phx.gen.channel_test.exs:74
Assertion failed, no matching message after 0ms
Showing 8 of 8 messages in the mailbox
code: assert_received {:mix_shell, :info, ["\nThe default socket handler - PhoenixWeb.UserSocket - was not found" <> _]}
mailbox:
pattern: {:mix_shell, :info, ["\nThe default socket handler - PhoenixWeb.UserSocket - was not found" <> _]}
value: {:mix_shell, :info,
["* creating lib/phoenix_web/channels/room_channel.ex"]}
pattern: {:mix_shell, :info, ["\nThe default socket handler - PhoenixWeb.UserSocket - was not found" <> _]}
value: {:mix_shell, :info,
["* creating test/phoenix_web/channels/room_channel_test.exs"]}
pattern: {:mix_shell, :info, ["\nThe default socket handler - PhoenixWeb.UserSocket - was not found" <> _]}
value: {:mix_shell, :info, ["* creating test/support/channel_case.ex"]}
pattern: {:mix_shell, :info, ["\nThe default socket handler - PhoenixWeb.UserSocket - was not found" <> _]}
value: {:mix_shell, :info,
["\r\nThe default socket handler - PhoenixWeb.UserSocket - was not found.\r\n"]}
pattern: {:mix_shell, :info, ["\nThe default socket handler - PhoenixWeb.UserSocket - was not found" <> _]}
value: {:mix_shell, :yes?, ["Do you want to create it?"]}
pattern: {:mix_shell, :info, ["\nThe default socket handler - PhoenixWeb.UserSocket - was not found" <> _]}
value: {:mix_shell, :info,
["* creating lib/phoenix_web/channels/user_socket.ex"]}
pattern: {:mix_shell, :info, ["\nThe default socket handler - PhoenixWeb.UserSocket - was not found" <> _]}
value: {:mix_shell, :info, ["* creating assets/js/user_socket.js"]}
pattern: {:mix_shell, :info, ["\nThe default socket handler - PhoenixWeb.UserSocket - was not found" <> _]}
value: {:mix_shell, :info,
["\r\nAdd the socket handler to your `lib/phoenix_web/endpoint.ex`, for example:\r\n\r\n socket \"/socket\", PhoenixWeb.UserSocket,\r\n websocket: true,\r\n longpoll: false\r\n\r\nFor the front-end integration, you need to import the `user_socket.js`\r\nin your `assets/js/app.js` file:\r\n\r\n import \"./user_socket.js\"\r\n"]}
stacktrace:
test/mix/tasks/phx.gen.channel_test.exs:90: anonymous fn/0 in Mix.Tasks.Phx.Gen.ChannelTest."test generates channel and ask to create UserSocket"/1
(elixir 1.14.5) lib/file.ex:1607: File.cd!/2
installer/test/mix_helper.exs:36: MixHelper.in_tmp_project/2
test/mix/tasks/phx.gen.channel_test.exs:75: (test)
54) test generates channel and give instructions when UserSocket does not exist (Mix.Tasks.Phx.Gen.ChannelTest)
test/mix/tasks/phx.gen.channel_test.exs:109
Assertion failed, no matching message after 0ms
Showing 6 of 6 messages in the mailbox
code: assert_received {:mix_shell, :info, ["\nThe default socket handler - PhoenixWeb.UserSocket - was not found" <> _]}
mailbox:
pattern: {:mix_shell, :info, ["\nThe default socket handler - PhoenixWeb.UserSocket - was not found" <> _]}
value: {:mix_shell, :info,
["* creating lib/phoenix_web/channels/room_channel.ex"]}
pattern: {:mix_shell, :info, ["\nThe default socket handler - PhoenixWeb.UserSocket - was not found" <> _]}
value: {:mix_shell, :info,
["* creating test/phoenix_web/channels/room_channel_test.exs"]}
pattern: {:mix_shell, :info, ["\nThe default socket handler - PhoenixWeb.UserSocket - was not found" <> _]}
value: {:mix_shell, :info, ["* creating test/support/channel_case.ex"]}
pattern: {:mix_shell, :info, ["\nThe default socket handler - PhoenixWeb.UserSocket - was not found" <> _]}
value: {:mix_shell, :info,
["\r\nThe default socket handler - PhoenixWeb.UserSocket - was not found.\r\n"]}
pattern: {:mix_shell, :info, ["\nThe default socket handler - PhoenixWeb.UserSocket - was not found" <> _]}
value: {:mix_shell, :yes?, ["Do you want to create it?"]}
pattern: {:mix_shell, :info, ["\nThe default socket handler - PhoenixWeb.UserSocket - was not found" <> _]}
value: {:mix_shell, :info,
["\r\nTo create it, please run the mix task:\r\n\r\n mix phx.gen.socket User\r\n\r\nThen add the channel to the newly created file, at `lib/phoenix_web/channels/user_socket.ex`:\r\n\r\n channel \"room:lobby\", PhoenixWeb.RoomChannel\r\n"]}
stacktrace:
test/mix/tasks/phx.gen.channel_test.exs:125: (test)
55) test in an umbrella with a context_app, generates the files (Mix.Tasks.Phx.Gen.ChannelTest)
test/mix/tasks/phx.gen.channel_test.exs:134
Assertion failed, no matching message after 0ms
Showing 6 of 6 messages in the mailbox
code: assert_received {:mix_shell, :info, ["\nThe default socket handler - PhoenixWeb.UserSocket - was not found" <> _]}
mailbox:
pattern: {:mix_shell, :info, ["\nThe default socket handler - PhoenixWeb.UserSocket - was not found" <> _]}
value: {:mix_shell, :info,
["* creating lib/phoenix/channels/room_channel.ex"]}
pattern: {:mix_shell, :info, ["\nThe default socket handler - PhoenixWeb.UserSocket - was not found" <> _]}
value: {:mix_shell, :info,
["* creating test/phoenix/channels/room_channel_test.exs"]}
pattern: {:mix_shell, :info, ["\nThe default socket handler - PhoenixWeb.UserSocket - was not found" <> _]}
value: {:mix_shell, :info, ["* creating test/support/channel_case.ex"]}
pattern: {:mix_shell, :info, ["\nThe default socket handler - PhoenixWeb.UserSocket - was not found" <> _]}
value: {:mix_shell, :info,
["\r\nThe default socket handler - PhoenixWeb.UserSocket - was not found.\r\n"]}
pattern: {:mix_shell, :info, ["\nThe default socket handler - PhoenixWeb.UserSocket - was not found" <> _]}
value: {:mix_shell, :yes?, ["Do you want to create it?"]}
pattern: {:mix_shell, :info, ["\nThe default socket handler - PhoenixWeb.UserSocket - was not found" <> _]}
value: {:mix_shell, :info,
["\r\nTo create it, please run the mix task:\r\n\r\n mix phx.gen.socket User\r\n\r\nThen add the channel to the newly created file, at `lib/phoenix/channels/user_socket.ex`:\r\n\r\n channel \"room:lobby\", PhoenixWeb.RoomChannel\r\n"]}
stacktrace:
test/mix/tasks/phx.gen.channel_test.exs:157: (test)
56) test generates nested channel (Mix.Tasks.Phx.Gen.ChannelTest)
test/mix/tasks/phx.gen.channel_test.exs:166
Assertion failed, no matching message after 0ms
Showing 6 of 6 messages in the mailbox
code: assert_received {:mix_shell, :info, ["\nThe default socket handler - PhoenixWeb.UserSocket - was not found" <> _]}
mailbox:
pattern: {:mix_shell, :info, ["\nThe default socket handler - PhoenixWeb.UserSocket - was not found" <> _]}
value: {:mix_shell, :info,
["* creating lib/phoenix_web/channels/admin/room_channel.ex"]}
pattern: {:mix_shell, :info, ["\nThe default socket handler - PhoenixWeb.UserSocket - was not found" <> _]}
value: {:mix_shell, :info,
["* creating test/phoenix_web/channels/admin/room_channel_test.exs"]}
pattern: {:mix_shell, :info, ["\nThe default socket handler - PhoenixWeb.UserSocket - was not found" <> _]}
value: {:mix_shell, :info, ["* creating test/support/channel_case.ex"]}
pattern: {:mix_shell, :info, ["\nThe default socket handler - PhoenixWeb.UserSocket - was not found" <> _]}
value: {:mix_shell, :info,
["\r\nThe default socket handler - PhoenixWeb.UserSocket - was not found.\r\n"]}
pattern: {:mix_shell, :info, ["\nThe default socket handler - PhoenixWeb.UserSocket - was not found" <> _]}
value: {:mix_shell, :yes?, ["Do you want to create it?"]}
pattern: {:mix_shell, :info, ["\nThe default socket handler - PhoenixWeb.UserSocket - was not found" <> _]}
value: {:mix_shell, :info,
["\r\nTo create it, please run the mix task:\r\n\r\n mix phx.gen.socket User\r\n\r\nThen add the channel to the newly created file, at `lib/phoenix_web/channels/user_socket.ex`:\r\n\r\n channel \"room:lobby\", PhoenixWeb.Admin.RoomChannel\r\n"]}
stacktrace:
test/mix/tasks/phx.gen.channel_test.exs:183: (test)
.....
57) test generates with unique fields (Mix.Tasks.Phx.Gen.ContextTest)
test/mix/tasks/phx.gen.context_test.exs:214
Assertion failed, no matching message after 0ms
Showing 10 of 10 messages in the mailbox
code: assert_received {:mix_shell, :info,
[
"\r\nSome of the generated database columns are unique. Please provide\r\nunique implementations for the following fixture function(s) in\r\ntest/support/fixtures/blog_fixtures.ex:\r\n\r\n def unique_post_price do\r\n raise \"implement the logic to generate a unique post price\"\r\n end\r\n\r\n def unique_post_published_at do\r\n raise \"implement the logic to generate a unique post published_at\"\r\n end\r\n"
]}
mailbox:
pattern: {:mix_shell, :info,
[
"\r\nSome of the generated database columns are unique. Please provide\r\nunique implementations for the following fixture function(s) in\r\ntest/support/fixtures/blog_fixtures.ex:\r\n\r\n def unique_post_price do\r\n raise \"implement the logic to generate a unique post price\"\r\n end\r\n\r\n def unique_post_published_at do\r\n raise \"implement the logic to generate a unique post published_at\"\r\n end\r\n"
]}
value: {:mix_shell, :info, ["* creating lib/phoenix/blog/post.ex"]}
pattern: {:mix_shell, :info,
[
"\r\nSome of the generated database columns are unique. Please provide\r\nunique implementations for the following fixture function(s) in\r\ntest/support/fixtures/blog_fixtures.ex:\r\n\r\n def unique_post_price do\r\n raise \"implement the logic to generate a unique post price\"\r\n end\r\n\r\n def unique_post_published_at do\r\n raise \"implement the logic to generate a unique post published_at\"\r\n end\r\n"
]}
value: {:mix_shell, :info,
["* creating priv/repo/migrations/20230620120006_create_posts.exs"]}
pattern: {:mix_shell, :info,
[
"\r\nSome of the generated database columns are unique. Please provide\r\nunique implementations for the following fixture function(s) in\r\ntest/support/fixtures/blog_fixtures.ex:\r\n\r\n def unique_post_price do\r\n raise \"implement the logic to generate a unique post price\"\r\n end\r\n\r\n def unique_post_published_at do\r\n raise \"implement the logic to generate a unique post published_at\"\r\n end\r\n"
]}
value: {:mix_shell, :info, ["* creating lib/phoenix/blog.ex"]}
pattern: {:mix_shell, :info,
[
"\r\nSome of the generated database columns are unique. Please provide\r\nunique implementations for the following fixture function(s) in\r\ntest/support/fixtures/blog_fixtures.ex:\r\n\r\n def unique_post_price do\r\n raise \"implement the logic to generate a unique post price\"\r\n end\r\n\r\n def unique_post_published_at do\r\n raise \"implement the logic to generate a unique post published_at\"\r\n end\r\n"
]}
value: {:mix_shell, :info, ["* injecting lib/phoenix/blog.ex"]}
pattern: {:mix_shell, :info,
[
"\r\nSome of the generated database columns are unique. Please provide\r\nunique implementations for the following fixture function(s) in\r\ntest/support/fixtures/blog_fixtures.ex:\r\n\r\n def unique_post_price do\r\n raise \"implement the logic to generate a unique post price\"\r\n end\r\n\r\n def unique_post_published_at do\r\n raise \"implement the logic to generate a unique post published_at\"\r\n end\r\n"
]}
value: {:mix_shell, :info, ["* creating test/phoenix/blog_test.exs"]}
pattern: {:mix_shell, :info,
[
"\r\nSome of the generated database columns are unique. Please provide\r\nunique implementations for the following fixture function(s) in\r\ntest/support/fixtures/blog_fixtures.ex:\r\n\r\n def unique_post_price do\r\n raise \"implement the logic to generate a unique post price\"\r\n end\r\n\r\n def unique_post_published_at do\r\n raise \"implement the logic to generate a unique post published_at\"\r\n end\r\n"
]}
value: {:mix_shell, :info, ["* injecting test/phoenix/blog_test.exs"]}
pattern: {:mix_shell, :info,
[
"\r\nSome of the generated database columns are unique. Please provide\r\nunique implementations for the following fixture function(s) in\r\ntest/support/fixtures/blog_fixtures.ex:\r\n\r\n def unique_post_price do\r\n raise \"implement the logic to generate a unique post price\"\r\n end\r\n\r\n def unique_post_published_at do\r\n raise \"implement the logic to generate a unique post published_at\"\r\n end\r\n"
]}
value: {:mix_shell, :info,
["* creating test/support/fixtures/blog_fixtures.ex"]}
pattern: {:mix_shell, :info,
[
"\r\nSome of the generated database columns are unique. Please provide\r\nunique implementations for the following fixture function(s) in\r\ntest/support/fixtures/blog_fixtures.ex:\r\n\r\n def unique_post_price do\r\n raise \"implement the logic to generate a unique post price\"\r\n end\r\n\r\n def unique_post_published_at do\r\n raise \"implement the logic to generate a unique post published_at\"\r\n end\r\n"
]}
value: {:mix_shell, :info,
["* injecting test/support/fixtures/blog_fixtures.ex"]}
pattern: {:mix_shell, :info,
[
"\r\nSome of the generated database columns are unique. Please provide\r\nunique implementations for the following fixture function(s) in\r\ntest/support/fixtures/blog_fixtures.ex:\r\n\r\n def unique_post_price do\r\n raise \"implement the logic to generate a unique post price\"\r\n end\r\n\r\n def unique_post_published_at do\r\n raise \"implement the logic to generate a unique post published_at\"\r\n end\r\n"
]}
value: {:mix_shell, :info,
["\r\nSome of the generated database columns are unique. Please provide\r\nunique implementations for the following fixture function(s) in\r\ntest/support/fixtures/blog_fixtures.ex:\r\n\r\n def unique_post_price do\r\n raise \"implement the logic to generate a unique post price\"\r\n end\r\n\n def unique_post_published_at do\r\n raise \"implement the logic to generate a unique post published_at\"\r\n end\r\n"]}
pattern: {:mix_shell, :info,
[
"\r\nSome of the generated database columns are unique. Please provide\r\nunique implementations for the following fixture function(s) in\r\ntest/support/fixtures/blog_fixtures.ex:\r\n\r\n def unique_post_price do\r\n raise \"implement the logic to generate a unique post price\"\r\n end\r\n\r\n def unique_post_published_at do\r\n raise \"implement the logic to generate a unique post published_at\"\r\n end\r\n"
]}
value: {:mix_shell, :info,
["\r\nRemember to update your repository by running migrations:\r\n\r\n $ mix ecto.migrate\r\n"]}
stacktrace:
test/mix/tasks/phx.gen.context_test.exs:227: anonymous fn/0 in Mix.Tasks.Phx.Gen.ContextTest."test generates with unique fields"/1
(elixir 1.14.5) lib/file.ex:1607: File.cd!/2
installer/test/mix_helper.exs:36: MixHelper.in_tmp_project/2
test/mix/tasks/phx.gen.context_test.exs:215: (test)
................................
58) test generates live resource and handles existing contexts (Mix.Tasks.Phx.Gen.LiveTest)
test/mix/tasks/phx.gen.live_test.exs:56
Assertion failed, no matching message after 200ms
Showing 10 of 37 messages in the mailbox
code: assert_receive {:mix_shell, :info,
[
"\r\nAdd the live routes to your browser scope in lib/phoenix_web/router.ex:\r\n\r\n live \"/comments\", CommentLive.Index, :index\r\n live \"/comments/new\", CommentLive.Index, :new\r\n live \"/comments/:id/edit\", CommentLive.Index, :edit\r\n\r\n live \"/comments/:id\", CommentLive.Show, :show\r\n live \"/comments/:id/show/edit\", CommentLive.Show, :edit\r\n"
]}
mailbox:
pattern: {:mix_shell, :info,
[
"\r\nAdd the live routes to your browser scope in lib/phoenix_web/router.ex:\r\n\r\n live \"/comments\", CommentLive.Index, :index\r\n live \"/comments/new\", CommentLive.Index, :new\r\n live \"/comments/:id/edit\", CommentLive.Index, :edit\r\n\r\n live \"/comments/:id\", CommentLive.Show, :show\r\n live \"/comments/:id/show/edit\", CommentLive.Show, :edit\r\n"
]}
value: {:mix_shell, :info, ["* creating lib/phoenix/blog/comment.ex"]}
pattern: {:mix_shell, :info,
[
"\r\nAdd the live routes to your browser scope in lib/phoenix_web/router.ex:\r\n\r\n live \"/comments\", CommentLive.Index, :index\r\n live \"/comments/new\", CommentLive.Index, :new\r\n live \"/comments/:id/edit\", CommentLive.Index, :edit\r\n\r\n live \"/comments/:id\", CommentLive.Show, :show\r\n live \"/comments/:id/show/edit\", CommentLive.Show, :edit\r\n"
]}
value: {:mix_shell, :info,
["* creating priv/repo/migrations/20230620120008_create_comments.exs"]}
pattern: {:mix_shell, :info,
[
"\r\nAdd the live routes to your browser scope in lib/phoenix_web/router.ex:\r\n\r\n live \"/comments\", CommentLive.Index, :index\r\n live \"/comments/new\", CommentLive.Index, :new\r\n live \"/comments/:id/edit\", CommentLive.Index, :edit\r\n\r\n live \"/comments/:id\", CommentLive.Show, :show\r\n live \"/comments/:id/show/edit\", CommentLive.Show, :edit\r\n"
]}
value: {:mix_shell, :info, ["* injecting lib/phoenix/blog.ex"]}
pattern: {:mix_shell, :info,
[
"\r\nAdd the live routes to your browser scope in lib/phoenix_web/router.ex:\r\n\r\n live \"/comments\", CommentLive.Index, :index\r\n live \"/comments/new\", CommentLive.Index, :new\r\n live \"/comments/:id/edit\", CommentLive.Index, :edit\r\n\r\n live \"/comments/:id\", CommentLive.Show, :show\r\n live \"/comments/:id/show/edit\", CommentLive.Show, :edit\r\n"
]}
value: {:mix_shell, :info, ["* injecting test/phoenix/blog_test.exs"]}
pattern: {:mix_shell, :info,
[
"\r\nAdd the live routes to your browser scope in lib/phoenix_web/router.ex:\r\n\r\n live \"/comments\", CommentLive.Index, :index\r\n live \"/comments/new\", CommentLive.Index, :new\r\n live \"/comments/:id/edit\", CommentLive.Index, :edit\r\n\r\n live \"/comments/:id\", CommentLive.Show, :show\r\n live \"/comments/:id/show/edit\", CommentLive.Show, :edit\r\n"
]}
value: {:mix_shell, :info,
["* injecting test/support/fixtures/blog_fixtures.ex"]}
pattern: {:mix_shell, :info,
[
"\r\nAdd the live routes to your browser scope in lib/phoenix_web/router.ex:\r\n\r\n live \"/comments\", CommentLive.Index, :index\r\n live \"/comments/new\", CommentLive.Index, :new\r\n live \"/comments/:id/edit\", CommentLive.Index, :edit\r\n\r\n live \"/comments/:id\", CommentLive.Show, :show\r\n live \"/comments/:id/show/edit\", CommentLive.Show, :edit\r\n"
]}
value: {:mix_shell, :info, ["* injecting lib/phoenix_web.ex"]}
pattern: {:mix_shell, :info,
[
"\r\nAdd the live routes to your browser scope in lib/phoenix_web/router.ex:\r\n\r\n live \"/comments\", CommentLive.Index, :index\r\n live \"/comments/new\", CommentLive.Index, :new\r\n live \"/comments/:id/edit\", CommentLive.Index, :edit\r\n\r\n live \"/comments/:id\", CommentLive.Show, :show\r\n live \"/comments/:id/show/edit\", CommentLive.Show, :edit\r\n"
]}
value: {:mix_shell, :info,
["\r\nCould not find use Phoenix.Component in lib/phoenix_web.ex.\r\n\r\nThis typically happens because your application was not generated\r\nwith the --live flag:\r\n\r\n mix phx.new my_app --live\r\n\r\nPlease make sure LiveView is installed and that PhoenixWeb\r\ndefines both `live_view/0` and `live_component/0` functions,\r\nand that both functions import PhoenixWeb.CoreComponents.\r\n"]}
pattern: {:mix_shell, :info,
[
"\r\nAdd the live routes to your browser scope in lib/phoenix_web/router.ex:\r\n\r\n live \"/comments\", CommentLive.Index, :index\r\n live \"/comments/new\", CommentLive.Index, :new\r\n live \"/comments/:id/edit\", CommentLive.Index, :edit\r\n\r\n live \"/comments/:id\", CommentLive.Show, :show\r\n live \"/comments/:id/show/edit\", CommentLive.Show, :edit\r\n"
]}
value: {:mix_shell, :info,
["\r\nAdd the live routes to your browser scope in lib/phoenix_web/router.ex:\r\n\r\n live \"/comments\", CommentLive.Index, :index\n live \"/comments/new\", CommentLive.Index, :new\n live \"/comments/:id/edit\", CommentLive.Index, :edit\n\n live \"/comments/:id\", CommentLive.Show, :show\n live \"/comments/:id/show/edit\", CommentLive.Show, :edit\r\n"]}
pattern: {:mix_shell, :info,
[
"\r\nAdd the live routes to your browser scope in lib/phoenix_web/router.ex:\r\n\r\n live \"/comments\", CommentLive.Index, :index\r\n live \"/comments/new\", CommentLive.Index, :new\r\n live \"/comments/:id/edit\", CommentLive.Index, :edit\r\n\r\n live \"/comments/:id\", CommentLive.Show, :show\r\n live \"/comments/:id/show/edit\", CommentLive.Show, :edit\r\n"
]}
value: {:mix_shell, :info,
["\r\nRemember to update your repository by running migrations:\r\n\r\n $ mix ecto.migrate\r\n"]}
pattern: {:mix_shell, :info,
[
"\r\nAdd the live routes to your browser scope in lib/phoenix_web/router.ex:\r\n\r\n live \"/comments\", CommentLive.Index, :index\r\n live \"/comments/new\", CommentLive.Index, :new\r\n live \"/comments/:id/edit\", CommentLive.Index, :edit\r\n\r\n live \"/comments/:id\", CommentLive.Show, :show\r\n live \"/comments/:id/show/edit\", CommentLive.Show, :edit\r\n"
]}
value: {:mix_shell, :info,
["\r\nYou must update :phoenix_live_view to v0.18 or later and\r\n:phoenix_live_dashboard to v0.7 or later to use the features\r\nin this generator.\r\n"]}
stacktrace:
test/mix/tasks/phx.gen.live_test.exs:164: anonymous fn/0 in Mix.Tasks.Phx.Gen.LiveTest."test generates live resource and handles existing contexts"/1
(elixir 1.14.5) lib/file.ex:1607: File.cd!/2
installer/test/mix_helper.exs:36: MixHelper.in_tmp_project/2
test/mix/tasks/phx.gen.live_test.exs:57: (test)
..
59) test with --web namespace generates namespaced web modules and directories (Mix.Tasks.Phx.Gen.LiveTest)
test/mix/tasks/phx.gen.live_test.exs:213
Assertion failed, no matching message after 200ms
Showing 10 of 20 messages in the mailbox
code: assert_receive {:mix_shell, :info,
[
"\r\nAdd the live routes to your Blog :browser scope in lib/phoenix_web/router.ex:\r\n\r\n scope \"/blog\", PhoenixWeb.Blog, as: :blog do\r\n pipe_through :browser\r\n ...\r\n\r\n live \"/posts\", PostLive.Index, :index\r\n live \"/posts/new\", PostLive.Index, :new\r\n live \"/posts/:id/edit\", PostLive.Index, :edit\r\n\r\n live \"/posts/:id\", PostLive.Show, :show\r\n live \"/posts/:id/show/edit\", PostLive.Show, :edit\r\n end\r\n"
]}
mailbox:
pattern: {:mix_shell, :info,
[
"\r\nAdd the live routes to your Blog :browser scope in lib/phoenix_web/router.ex:\r\n\r\n scope \"/blog\", PhoenixWeb.Blog, as: :blog do\r\n pipe_through :browser\r\n ...\r\n\r\n live \"/posts\", PostLive.Index, :index\r\n live \"/posts/new\", PostLive.Index, :new\r\n live \"/posts/:id/edit\", PostLive.Index, :edit\r\n\r\n live \"/posts/:id\", PostLive.Show, :show\r\n live \"/posts/:id/show/edit\", PostLive.Show, :edit\r\n end\r\n"
]}
value: {:mix_shell, :info, ["* injecting lib/phoenix/blog.ex"]}
pattern: {:mix_shell, :info,
[
"\r\nAdd the live routes to your Blog :browser scope in lib/phoenix_web/router.ex:\r\n\r\n scope \"/blog\", PhoenixWeb.Blog, as: :blog do\r\n pipe_through :browser\r\n ...\r\n\r\n live \"/posts\", PostLive.Index, :index\r\n live \"/posts/new\", PostLive.Index, :new\r\n live \"/posts/:id/edit\", PostLive.Index, :edit\r\n\r\n live \"/posts/:id\", PostLive.Show, :show\r\n live \"/posts/:id/show/edit\", PostLive.Show, :edit\r\n end\r\n"
]}
value: {:mix_shell, :info, ["* creating test/phoenix/blog_test.exs"]}
pattern: {:mix_shell, :info,
[
"\r\nAdd the live routes to your Blog :browser scope in lib/phoenix_web/router.ex:\r\n\r\n scope \"/blog\", PhoenixWeb.Blog, as: :blog do\r\n pipe_through :browser\r\n ...\r\n\r\n live \"/posts\", PostLive.Index, :index\r\n live \"/posts/new\", PostLive.Index, :new\r\n live \"/posts/:id/edit\", PostLive.Index, :edit\r\n\r\n live \"/posts/:id\", PostLive.Show, :show\r\n live \"/posts/:id/show/edit\", PostLive.Show, :edit\r\n end\r\n"
]}
value: {:mix_shell, :info, ["* injecting test/phoenix/blog_test.exs"]}
pattern: {:mix_shell, :info,
[
"\r\nAdd the live routes to your Blog :browser scope in lib/phoenix_web/router.ex:\r\n\r\n scope \"/blog\", PhoenixWeb.Blog, as: :blog do\r\n pipe_through :browser\r\n ...\r\n\r\n live \"/posts\", PostLive.Index, :index\r\n live \"/posts/new\", PostLive.Index, :new\r\n live \"/posts/:id/edit\", PostLive.Index, :edit\r\n\r\n live \"/posts/:id\", PostLive.Show, :show\r\n live \"/posts/:id/show/edit\", PostLive.Show, :edit\r\n end\r\n"
]}
value: {:mix_shell, :info,
["* creating test/support/fixtures/blog_fixtures.ex"]}
pattern: {:mix_shell, :info,
[
"\r\nAdd the live routes to your Blog :browser scope in lib/phoenix_web/router.ex:\r\n\r\n scope \"/blog\", PhoenixWeb.Blog, as: :blog do\r\n pipe_through :browser\r\n ...\r\n\r\n live \"/posts\", PostLive.Index, :index\r\n live \"/posts/new\", PostLive.Index, :new\r\n live \"/posts/:id/edit\", PostLive.Index, :edit\r\n\r\n live \"/posts/:id\", PostLive.Show, :show\r\n live \"/posts/:id/show/edit\", PostLive.Show, :edit\r\n end\r\n"
]}
value: {:mix_shell, :info,
["* injecting test/support/fixtures/blog_fixtures.ex"]}
pattern: {:mix_shell, :info,
[
"\r\nAdd the live routes to your Blog :browser scope in lib/phoenix_web/router.ex:\r\n\r\n scope \"/blog\", PhoenixWeb.Blog, as: :blog do\r\n pipe_through :browser\r\n ...\r\n\r\n live \"/posts\", PostLive.Index, :index\r\n live \"/posts/new\", PostLive.Index, :new\r\n live \"/posts/:id/edit\", PostLive.Index, :edit\r\n\r\n live \"/posts/:id\", PostLive.Show, :show\r\n live \"/posts/:id/show/edit\", PostLive.Show, :edit\r\n end\r\n"
]}
value: {:mix_shell, :info, ["* injecting lib/phoenix_web.ex"]}
pattern: {:mix_shell, :info,
[
"\r\nAdd the live routes to your Blog :browser scope in lib/phoenix_web/router.ex:\r\n\r\n scope \"/blog\", PhoenixWeb.Blog, as: :blog do\r\n pipe_through :browser\r\n ...\r\n\r\n live \"/posts\", PostLive.Index, :index\r\n live \"/posts/new\", PostLive.Index, :new\r\n live \"/posts/:id/edit\", PostLive.Index, :edit\r\n\r\n live \"/posts/:id\", PostLive.Show, :show\r\n live \"/posts/:id/show/edit\", PostLive.Show, :edit\r\n end\r\n"
]}
value: {:mix_shell, :info,
["\r\nCould not find use Phoenix.Component in lib/phoenix_web.ex.\r\n\r\nThis typically happens because your application was not generated\r\nwith the --live flag:\r\n\r\n mix phx.new my_app --live\r\n\r\nPlease make sure LiveView is installed and that PhoenixWeb\r\ndefines both `live_view/0` and `live_component/0` functions,\r\nand that both functions import PhoenixWeb.CoreComponents.\r\n"]}
pattern: {:mix_shell, :info,
[
"\r\nAdd the live routes to your Blog :browser scope in lib/phoenix_web/router.ex:\r\n\r\n scope \"/blog\", PhoenixWeb.Blog, as: :blog do\r\n pipe_through :browser\r\n ...\r\n\r\n live \"/posts\", PostLive.Index, :index\r\n live \"/posts/new\", PostLive.Index, :new\r\n live \"/posts/:id/edit\", PostLive.Index, :edit\r\n\r\n live \"/posts/:id\", PostLive.Show, :show\r\n live \"/posts/:id/show/edit\", PostLive.Show, :edit\r\n end\r\n"
]}
value: {:mix_shell, :info,
["\r\nAdd the live routes to your Blog :browser scope in lib/phoenix_web/router.ex:\r\n\r\n scope \"/blog\", PhoenixWeb.Blog, as: :blog do\r\n pipe_through :browser\r\n ...\r\n\r\n live \"/posts\", PostLive.Index, :index\n live \"/posts/new\", PostLive.Index, :new\n live \"/posts/:id/edit\", PostLive.Index, :edit\n\n live \"/posts/:id\", PostLive.Show, :show\n live \"/posts/:id/show/edit\", PostLive.Show, :edit\r\n end\r\n"]}
pattern: {:mix_shell, :info,
[
"\r\nAdd the live routes to your Blog :browser scope in lib/phoenix_web/router.ex:\r\n\r\n scope \"/blog\", PhoenixWeb.Blog, as: :blog do\r\n pipe_through :browser\r\n ...\r\n\r\n live \"/posts\", PostLive.Index, :index\r\n live \"/posts/new\", PostLive.Index, :new\r\n live \"/posts/:id/edit\", PostLive.Index, :edit\r\n\r\n live \"/posts/:id\", PostLive.Show, :show\r\n live \"/posts/:id/show/edit\", PostLive.Show, :edit\r\n end\r\n"
]}
value: {:mix_shell, :info,
["\r\nRemember to update your repository by running migrations:\r\n\r\n $ mix ecto.migrate\r\n"]}
pattern: {:mix_shell, :info,
[
"\r\nAdd the live routes to your Blog :browser scope in lib/phoenix_web/router.ex:\r\n\r\n scope \"/blog\", PhoenixWeb.Blog, as: :blog do\r\n pipe_through :browser\r\n ...\r\n\r\n live \"/posts\", PostLive.Index, :index\r\n live \"/posts/new\", PostLive.Index, :new\r\n live \"/posts/:id/edit\", PostLive.Index, :edit\r\n\r\n live \"/posts/:id\", PostLive.Show, :show\r\n live \"/posts/:id/show/edit\", PostLive.Show, :edit\r\n end\r\n"
]}
value: {:mix_shell, :info,
["\r\nYou must update :phoenix_live_view to v0.18 or later and\r\n:phoenix_live_dashboard to v0.7 or later to use the features\r\nin this generator.\r\n"]}
stacktrace:
test/mix/tasks/phx.gen.live_test.exs:259: anonymous fn/0 in Mix.Tasks.Phx.Gen.LiveTest."test with --web namespace generates namespaced web modules and directories"/1
(elixir 1.14.5) lib/file.ex:1607: File.cd!/2
installer/test/mix_helper.exs:36: MixHelper.in_tmp_project/2
test/mix/tasks/phx.gen.live_test.exs:214: (test)
...
60) test generates release files without ecto (Mix.Tasks.Phx.Gen.ReleaseTest)
test/mix/tasks/phx.gen.release_test.exs:54
Assertion failed, no matching message after 200ms
Showing 3 of 3 messages in the mailbox
code: assert_receive {:mix_shell, :info, ["\nYour application is ready to be deployed" <> _]}
mailbox:
pattern: {:mix_shell, :info, ["\nYour application is ready to be deployed" <> _]}
value: {:mix_shell, :info,
["\r\nYour application is ready to be deployed in a release!\r\n\r\nSee https://hexdocs.pm/mix/Mix.Tasks.Release.html for more information about Elixir releases.\r\n\r\nHere are some useful release commands you can run in any release environment:\r\n\r\n # To build a release\r\n mix release\r\n\r\n # To start your system with the Phoenix server running\r\n _build/dev/rel/phoenix/bin/server\r\n\r\nOnce the release is running you can connect to it remotely:\r\n\r\n _build/dev/rel/phoenix/bin/phoenix remote\r\n\r\nTo list all commands:\r\n\r\n _build/dev/rel/phoenix/bin/phoenix\r\n"]}
pattern: {:mix_shell, :info, ["\nYour application is ready to be deployed" <> _]}
value: {:mix_shell, :info,
["[warn] Conditional server startup is missing from runtime configuration.\r\n\r\nAdd the following to the top of your config/runtime.exs:\r\n\r\n if System.get_env(\"PHX_SERVER\") do\r\n config :phoenix, PhoenixWeb.Endpoint, server: true\r\n end\r\n"]}
pattern: {:mix_shell, :info, ["\nYour application is ready to be deployed" <> _]}
value: {:mix_shell, :info,
["[warn] Environment based URL export is missing from runtime configuration.\r\n\r\nAdd the following to your config/runtime.exs:\r\n\r\n host = System.get_env(\"PHX_HOST\") || \"example.com\"\r\n\r\n config :phoenix, PhoenixWeb.Endpoint,\r\n ...,\r\n url: [host: host, port: 443]\r\n"]}
stacktrace:
test/mix/tasks/phx.gen.release_test.exs:75: anonymous fn/0 in Mix.Tasks.Phx.Gen.ReleaseTest."test generates release files without ecto"/1
(elixir 1.14.5) lib/file.ex:1607: File.cd!/2
installer/test/mix_helper.exs:36: MixHelper.in_tmp_project/2
test/mix/tasks/phx.gen.release_test.exs:55: (test)
61) test generates release and docker files (Mix.Tasks.Phx.Gen.ReleaseTest)
test/mix/tasks/phx.gen.release_test.exs:79
Assertion with =~ failed
code: assert file =~ "set PHX_SERVER=true\ncall \"%~dp0\\phoenix\" start"
left: "set PHX_SERVER=true\r\ncall \"%~dp0\\phoenix\" start\r\n"
right: "set PHX_SERVER=true\ncall \"%~dp0\\phoenix\" start"
stacktrace:
test/mix/tasks/phx.gen.release_test.exs:105: anonymous fn/0 in Mix.Tasks.Phx.Gen.ReleaseTest."test generates release and docker files"/1
(elixir 1.14.5) lib/file.ex:1607: File.cd!/2
installer/test/mix_helper.exs:36: MixHelper.in_tmp_project/2
test/mix/tasks/phx.gen.release_test.exs:80: (test)
..
62) test generates release files (Mix.Tasks.Phx.Gen.ReleaseTest)
test/mix/tasks/phx.gen.release_test.exs:15
Assertion with =~ failed
code: assert file =~ "set PHX_SERVER=true\ncall \"%~dp0\\phoenix\" start"
left: "set PHX_SERVER=true\r\ncall \"%~dp0\\phoenix\" start\r\n"
right: "set PHX_SERVER=true\ncall \"%~dp0\\phoenix\" start"
stacktrace:
test/mix/tasks/phx.gen.release_test.exs:36: anonymous fn/0 in Mix.Tasks.Phx.Gen.ReleaseTest."test generates release files"/1
(elixir 1.14.5) lib/file.ex:1607: File.cd!/2
installer/test/mix_helper.exs:36: MixHelper.in_tmp_project/2
test/mix/tasks/phx.gen.release_test.exs:16: (test)
......
63) test with existing core_components.ex file (Mix.Tasks.Phx.Gen.JsonTest)
test/mix/tasks/phx.gen.json_test.exs:334
Expected lib/phoenix_web/controllers/blog/changeset_json.ex to exist, but does not
code: in_tmp_project(config.test, fn ->
stacktrace:
installer/test/mix_helper.exs:101: MixHelper.assert_file/2
test/mix/tasks/phx.gen.json_test.exs:347: anonymous fn/0 in Mix.Tasks.Phx.Gen.JsonTest."test with existing core_components.ex file"/1
(elixir 1.14.5) lib/file.ex:1607: File.cd!/2
installer/test/mix_helper.exs:36: MixHelper.in_tmp_project/2
test/mix/tasks/phx.gen.json_test.exs:335: (test)
..
64) test with json --web namespace generates namespaced web modules and directories (Mix.Tasks.Phx.Gen.JsonTest)
test/mix/tasks/phx.gen.json_test.exs:165
Expected lib/phoenix_web/controllers/blog/changeset_json.ex to exist, but does not
code: in_tmp_project(config.test, fn ->
stacktrace:
installer/test/mix_helper.exs:101: MixHelper.assert_file/2
test/mix/tasks/phx.gen.json_test.exs:184: anonymous fn/0 in Mix.Tasks.Phx.Gen.JsonTest."test with json --web namespace generates namespaced web modules and directories"/1
(elixir 1.14.5) lib/file.ex:1607: File.cd!/2
installer/test/mix_helper.exs:36: MixHelper.in_tmp_project/2
test/mix/tasks/phx.gen.json_test.exs:166: (test)
.....................
Finished in 69.3 seconds (5.9s async, 63.3s sync)
11 doctests, 886 tests, 64 failures
Randomized with seed 603368
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment