elixir
elixir copied to clipboard
Can I use nested contexts/setups in ExUnit?
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)?
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.