jswny
Including ExUnit in a release to use Wallaby
I’m using the following library: GitHub - elixir-wallaby/wallaby: Concurrent browser tests with elixir
However, this library is meant for testing only and calls ExUnit functions directly. I’m using it as a regular WebDriver library to interact with the Chrome WebDriver, so I need it to run outside just the test environment.
However, even when using the following to include ExUnit in the release: applications: [ex_unit: :permanent], when I run the release, I get this error:
18:15:03.703 [info] Application wallaby exited: Wallaby.start(:normal, []) returned an error: shutdown: failed to start child: Wallaby.SessionStore
** (EXIT) an exception was raised:
** (UndefinedFunctionError) function ExUnit.after_suite/1 is undefined (module ExUnit is not available)
ExUnit.after_suite(#Function<0.96164278/1 in Wallaby.SessionStore.init/1>)
(wallaby 0.28.0) lib/wallaby/session_store.ex:41: Wallaby.SessionStore.init/1
(stdlib 3.14) gen_server.erl:417: :gen_server.init_it/2
(stdlib 3.14) gen_server.erl:385: :gen_server.init_it/6
(stdlib 3.14) proc_lib.erl:226: :proc_lib.init_p_do_apply/3
Does anyone know the proper way of including ExUnit in a release to sidestep this issue?
First Post!
jswny
Nevermind, had some other settings wrong, the solution of including ExUnit explicitly works 
Popular in Questions
I wanted to check elixir version in phoenix because i found that my elixir is 1.5 but when i use Enum.chunk_by it said the function is un...
New
Hi! May someone helps me, please!
I have two apps into an umbrella project: the first one is Database, which manages queries, and the se...
New
In Ruby, I can go:
User.find_by(email: "foobar@email.com").update(email: "hello@email.com")
How can I do something similar in Elixir? ...
New
In asking this question I am more interested about the expressiveness of the language itself and less concerned about the availability of...
New
I want to try my hand at web scraping. What tools/libraries do I need to use. I’m hoping to turn this into something professional so don’...
New
Student & New to elixir. Nice language.
I want to convert a english character, e.g. “a”, which is stored in a variable, to it’s asci...
New
As many of you may have realized by now (sorry for all the posts here) I’ve been working on a db problem where I’m trying to aggregate a ...
New
Hey,
I have a NanoPi-M3 and try to install Elixir on their Ubuntu image. I followed the Raspberry Pi installation instructions from the ...
New
Hi all,
I've just started learning Elixir and Phoenix Framework, so please pardon my n00bness at this stage.
I'm trying to use Postg...
New
Can someone explain the settings of pool_size of Ecto in config file? and what is the recommend size?
Thanks
New
Other popular topics
This post is an instruction guide to help you setup your Neovim for Elixir development from scratch. It includes general information on h...
New
I have a relationship of love and hate with Elixir. Lots of things are just absolutely right, but there are some things that are kind of ...
New
I would like to know that is there any online source for learning Phoenix Framework for building E-Commerce Store? Any advantage on build...
New
I believe there are people here who are dealing with CSV files import on the daily basis, and since Excel is a really popular tool there ...
New
What is the idiomatic way of matching for not nil in Elixir?
E.g.,
First way:
defp halt_if_not_signed_in(conn, signed_in_account) when...
New
What is the difference between System.get_env and Application.get_env? For example, what are best practices to use one versus another.
New
Hello everybody,
usually, I use a 29" ultra-wide monitor for VSCode which can easily accomodate explorer (files panel) + file with code ...
New
I have a super simple question about elixir - how would I take a file like this
foo bar baz
and output a new file that enumerates th...
New
by Lance Halvorsen
Elixir and Phoenix are generating tremendous excitement as an unbeatable platform for building modern web application...
New
Hello again - after a longish gap I’ve decided I really must dig into Elixir and see what’s been happening here - so I have a few questio...
New








