-
Notifications
You must be signed in to change notification settings - Fork 62
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
mix espec.init doesn't work in umbrella apps #307
Comments
Hey @alec-c4 ! ESpec.configure fn(config) ->
config.before fn(tags) ->
{:shared, hello: :world, tags: tags}
end
config.finally fn(_shared) ->
:ok
end
end You need to run the task in each app in umbrella. Since all the apps need the file |
Yay! It works! Thanks a lot! May I ask you to update README with information how to use espec in umbrella apps? And one more question 'bout code organization - should I create espec-related stuff in every project or is it better to place spec-files in root or umbrella application? |
I've added espec for every app in apps directory, then created alias in umbrella's mix'exs defp aliases do
[
# run `mix setup` in all child apps
setup: ["cmd mix setup"],
lint: ["credo", "dialyzer"],
test: ["cmd mix test", "cmd mix espec"]
]
end but i'm not sure that it is the best test running strategy |
It's better to have separate specs for each umbrella app |
Hi!
I'm trying to start using espec in umbrella application. Because of there are no information in README, i've just done the following steps
1 - added espec to the deps section in main app, added preferred_cli_env
2 - added espec to the every mix.esx in apps folder
when I use
mix espec.init
in any app folder i see following messageWhat's wrong? May I ask you to add in README file information how to use espec in umbrella apps?
The text was updated successfully, but these errors were encountered: