From reading this thread I have gathered the impression that Python devs don’t like doctest: https://forum.djangoproject.com/t/testing-django-with-doctest/25550/8
I think doctests are an antipattern for anything other than testing code examples in documentation to make sure they keep working. Specifically, they shouldn’t be part of your main testing strategy, especially as a beginner.
The romantic part of me misses doctests, but I think the tide has gone well away from it… — Q: are doctests really supported and developed in the stdlib still? I think _not really_… (like, they haven’t been removed but that’s about all we can say, unless I’ve missed something)
I really like doctests though.
What do other developers think are the problems with doctests?
submitted by /u/Informal-Addendum435
[link] [comments]
r/learnpython From reading this thread I have gathered the impression that Python devs don’t like doctest: https://forum.djangoproject.com/t/testing-django-with-doctest/25550/8 I think doctests are an antipattern for anything other than testing code examples in documentation to make sure they keep working. Specifically, they shouldn’t be part of your main testing strategy, especially as a beginner. The romantic part of me misses doctests, but I think the tide has gone well away from it… — Q: are doctests really supported and developed in the stdlib still? I think _not really_… (like, they haven’t been removed but that’s about all we can say, unless I’ve missed something) I really like doctests though. What do other developers think are the problems with doctests? submitted by /u/Informal-Addendum435 [link] [comments]
From reading this thread I have gathered the impression that Python devs don’t like doctest: https://forum.djangoproject.com/t/testing-django-with-doctest/25550/8
I think doctests are an antipattern for anything other than testing code examples in documentation to make sure they keep working. Specifically, they shouldn’t be part of your main testing strategy, especially as a beginner.
The romantic part of me misses doctests, but I think the tide has gone well away from it… — Q: are doctests really supported and developed in the stdlib still? I think _not really_… (like, they haven’t been removed but that’s about all we can say, unless I’ve missed something)
I really like doctests though.
What do other developers think are the problems with doctests?
submitted by /u/Informal-Addendum435
[link] [comments]