Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

espec not launched #110

Open
confucius opened this issue May 11, 2019 · 1 comment
Open

espec not launched #110

confucius opened this issue May 11, 2019 · 1 comment

Comments

@confucius
Copy link

ESpec is not fired despite being specified as the testing library in the WhiteBread context file:

mix white_bread.run
loading all contexts from features/contexts/**
** (exit) exited in: GenServer.call(:espec_specs_agent, {:update, #Function<0.60990145/1 in ESpec.add_spec/1>}, 5000)
** (EXIT) no process: the process is not alive or there's no process currently associated with the given name, possibly because its application isn't started
(elixir) lib/gen_server.ex:979: GenServer.call/3
features/contexts/white_bread_context.exs:2: (module)
(stdlib) erl_eval.erl:680: :erl_eval.do_apply/6

mix.exs declares the following dependencies:
{:white_bread, "~> 4.5", only: [:dev, :test]},

{:espec, "~> 1.7", only: [:dev, :test]},

{:poison, "~> 4.0", override: true}

And white_bread_context.exs is:
defmodule WhiteBreadContext do
use WhiteBread.Context, test_library: :espec
end

@meadsteve
Copy link
Collaborator

@confucius I think this is a flaw with the documentation. test_library: :espec only tells whitebread to use espec assertions. Espec needs to be started up outside of whitebread.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants