-
Notifications
You must be signed in to change notification settings - Fork 36
Open
Description
My project's application starts with a few workers that shouldn't start during testing. When I run mix white_bread.run --no-start, the context fails to find any module in the project.
Referring to https://github.com/elixir-lang/elixir/blob/master/lib/mix/lib/mix/tasks/test.ex#L195 I've to fix it by:
feature_starting_state fn ->
Mix.Project.compile([])
Application.ensure_all_started :postgrex
Application.ensure_all_started :ecto
...
end
I wonder why white_bread.run actually doesn't go through test/test_helper.exs, and the use WhiteBread.Context only do import ExUnit.Assertions rather than use ExUnit.Case as in: https://github.com/drewolson/ex_spec/blob/master/lib/ex_spec.ex#L44 .
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels