Skip to content

Support for running with --no-start #67

@raysegantii

Description

@raysegantii

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 .

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions