``` """
>>> import warnings
>>> with warnings.catch_warnings(record=False):
... warnings.simplefilter("ignore")
... run_my_func("...")
Expected output
```
``` """
>>> import warnings
>>> with warnings.catch_warnings(record=False):
... warnings.simplefilter("ignore")
... run_my_func("...")
Expected output
```
Documentation that can't lie about your code? Sign us up.
📅 21-22 Oct | Haarlem, NL | In-person & Virtual
https://codebeameurope.com/<a href="/hashtag/register" class="hover:underline text-blue-600 dark:text-sky-400 no-card-link">#register
Documentation that can't lie about your code? Sign us up.
📅 21-22 Oct | Haarlem, NL | In-person & Virtual
https://codebeameurope.com/<a href="/hashtag/register" class="hover:underline text-blue-600 dark:text-sky-400 no-card-link">#register
I think it's working well? Sometimes it's very hard to tell!
I think it's working well? Sometimes it's very hard to tell!
Dá pra escrever uma especificação inteira sem usar uma linha de código sequer, e depois ir adicionando os testes para cada trecho, e então ir escrevendo o código vai dar vida a tudo.
Dá pra escrever uma especificação inteira sem usar uma linha de código sequer, e depois ir adicionando os testes para cada trecho, e então ir escrevendo o código vai dar vida a tudo.
A única coisa que não gosto no unittest é o "camelCase" no nome dos métodos.
A única coisa que não gosto no unittest é o "camelCase" no nome dos métodos.
Exemplo real: github.com/IndiePython/...
Exemplo real: github.com/IndiePython/...
Mt gente não sabe, mas doctests podem usar qualquer formato de texto, o que significa q vc pode usar, por exemplo, markdown.
Aliás, doctests podem ser achados e executados com unittest.
Mt gente não sabe, mas doctests podem usar qualquer formato de texto, o que significa q vc pode usar, por exemplo, markdown.
Aliás, doctests podem ser achados e executados com unittest.
For instance: github.com/IndiePython/...
For instance: github.com/IndiePython/...
And it's not just about using new features—it's also about wasteful CI runs, unnecessary deps, tooling conflicts, & most […]
[Original post on mastodon.social]
And it's not just about using new features—it's also about wasteful CI runs, unnecessary deps, tooling conflicts, & most […]
[Original post on mastodon.social]
or
Basically Rustdoc+doctests but integrated with your planning documents
or
Basically Rustdoc+doctests but integrated with your planning documents
Lukas has been on the Erlang/OTP team at Ericsson since 2010, working in the Erlang VM. He'll be exploring doctests in Erlang: what they are, how to use them, and why writing tests in your documentation means you get both at once.
Lukas has been on the Erlang/OTP team at Ericsson since 2010, working in the Erlang VM. He'll be exploring doctests in Erlang: what they are, how to use them, and why writing tests in your documentation means you get both at once.
But what you should hear is “Cool, we can focus on more interesting tests”.
Golden tests, property tests, doctests…
wiki.haskell.org/index.php?ti...
But what you should hear is “Cool, we can focus on more interesting tests”.
Golden tests, property tests, doctests…
wiki.haskell.org/index.php?ti...
Write it once. Ship it everywhere.
Write it once. Ship it everywhere.