I'm trying to write some good examples for documentation, and I'd like them to be run as tests. However, there's some setup required that would be too verbose and not relevant for a doctest. What are the group's thoughts on allowing the ExUnit setup context to be available in doctests?
I'm not trying to contain all of my tests in doctests; I understand that certain kinds of tests should remain in the test file. I'm only trying to write concise examples that need a little setup. One example: I need a user object as an argument to a business logic module, but creating a user object is not a relevant part of the example. -- You received this message because you are subscribed to the Google Groups "elixir-lang-core" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-core/ed0b6ff5-79aa-4d7e-a951-b802e36976c4n%40googlegroups.com.
