Python Forum
How would you test this module?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How would you test this module?
#2
In the standard lib, there's unit tests: https://docs.python.org/3/library/unittest.html
and doc tests: https://docs.python.org/3/library/doctest.html

Doc tests are useful if you have a tool that builds documentation for you (such as Sphinx http://www.sphinx-doc.org/en/stable/), so you know your examples are still accurate. Unit tests are probably more useful in general, though.
Reply


Messages In This Thread
How would you test this module? - by RickyWilson - Dec-26-2017, 04:49 PM
RE: How would you test this module? - by nilamo - Jan-04-2018, 07:34 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How to test and import a model form computer to test accuracy using Sklearn library Anldra12 6 3,252 Jul-03-2021, 10:07 AM
Last Post: Anldra12
  How to write test cases for a init function by Unit test in python? binhduonggttn 2 3,183 Feb-24-2020, 12:06 PM
Last Post: Larz60+
  How to write test cases by Unit test for database configuration file? binhduonggttn 0 2,607 Feb-18-2020, 08:03 AM
Last Post: binhduonggttn

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020