elixir icon indicating copy to clipboard operation
elixir copied to clipboard

Can I use nested contexts/setups in ExUnit?

Open gabehollombe opened this issue 13 years ago • 1 comments

Can I set up nested contexts in ExUnit, similar to how I'd do something like this in RSpec? The docs don't show an example of this. Or, am I trying to put a functional peg in an imperative hole (i.e. should I not even be doing this when testing Elixir modules)?

gabehollombe avatar Aug 27 '13 07:08 gabehollombe

No, we don't support that. We support ExUnit.CaseTemplate, which helps a bit but not as straight-forward as RSpec. Also please use the elixir-talk mailing list for questions/help, thanks.

josevalim avatar Aug 27 '13 10:08 josevalim