Latest #doctest Threads Top

James_E
Considering that the order of Map keys isn’t guaranteed, is there any reliable way to check KeyErrors in doctests? Doctest failed: wron...
New
silverdr
There is exvcr and there are doctests. Can they be married somehow?
New
lenards
I recently noticed in our codebase had some iex> usage in doc strings, but those modules did not have a corresponding ExUnit.DocTest.d...
New
stefanluptak
Hi everybody! :slight_smile: When trying to use doctests in Livebook, I get this error: ** (ExUnit.DocTest.Error) #cell:brdghoceywtzil2...
New
julismz
Hi, I’m wondering if there is some way to put some custom / detailed name to the tests using the DocTest, in order to be showed on the c...
New
RudManusachi
Hi there! :wave: It’s me again! Lately I’ve been working on documentation for the project, including adding some context function usage...
New
bmitc
Is there a way to not run the setup callback during doctests? For example, I’d like to have a test .exs file that both runs doctests usin...
New
Euphorichuman
I’ve been doing the Get Started elixir. I’m currently going part 9 of MIX AND OTP, but I am having an error with the Doctests that I cann...
New
TomHale
I’m using VSCode, and syntax highlighting doesn’t work with .exs files. Confoundingly, it seems that mix test will only include .exs fil...
New
KLaus_K
I have written some code that parses a string and creates a NaiveDateTime. I have written some ExUnit tests that work fine, comparing the...
New

This Week's Trending Top

This Month's Trending Top

This Year's Trending Top

James_E
Considering that the order of Map keys isn’t guaranteed, is there any reliable way to check KeyErrors in doctests? Doctest failed: wron...
New

Last Three Year's Trending Top

markmark206
I put together a Livebook that illustrates using a package. The Livebook has been a great addition to all the usual documentation, and g...
New
silverdr
There is exvcr and there are doctests. Can they be married somehow?
New

Trending Over Three Years Top

Qqwy
I am working on the MapDiff library, so it works better when structs are passed to it. I wrote the following two doctests: iex> ...
New
debajit
I have the following module where as I developed the code I was using doctests to verify if the function did what I expected. The problem...
New
script
I have read doc test documentation. And apply it in my project but I couldn’t figure this out. If my output is very long like a query th...
New
Ilyes512
So today I came across doctest and it is really awesome! But while learning about it I was thinking about edge cases. One of those could ...
New
Euphorichuman
I’ve been doing the Get Started elixir. I’m currently going part 9 of MIX AND OTP, but I am having an error with the Doctests that I cann...
New
TomHale
I’m using VSCode, and syntax highlighting doesn’t work with .exs files. Confoundingly, it seems that mix test will only include .exs fil...
New
evnu
Hi! I spent some hours the last few days to put together a simple helper to check that code examples in README.md files can actually be ...
New
stratacast
Hey everybody! I’m coming back at Elixir again after maybe a year of not being able to jump into my web development hobby. I wanted to ge...
New
oliveiragahenrique
I’m building a very simple application, every time you call ModuleX.get(id) the system perform the folowing actions: Search for id on d...
New
bmitc
Is there a way to not run the setup callback during doctests? For example, I’d like to have a test .exs file that both runs doctests usin...
New
alisinabh
Hi I've recently faced a problem with doc tests on html documents: Here is my code and docs: @doc """ Does something good! ## Exa...
New
stefanluptak
Hi everybody! :slight_smile: When trying to use doctests in Livebook, I get this error: ** (ExUnit.DocTest.Error) #cell:brdghoceywtzil2...
New
Cruz
Hi, I recently wrapped an Elixir app with a plug_cowboy endpoint. Everything is working fine, but when I do: mix test just the tests...
New
RudManusachi
Hi there! :wave: It’s me again! Lately I’ve been working on documentation for the project, including adding some context function usage...
New
KLaus_K
I have written some code that parses a string and creates a NaiveDateTime. I have written some ExUnit tests that work fine, comparing the...
New
  • Follow
  • Join
  • Shape
the conversation

Latest on Elixir Forum

Elixir Forum

Similar Portals

    None added yet

We're in Beta

About us Mission Statement