Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Python vector
#5
I notice that your repo has a tests directory, but in general testing should be automated.The problem with just having scripts that print stuff is that they require a human to look at the results, which is error prone (say someone misreads the output) and as an application or library grows, time consuming. Therefore, as developers, we prefer to write test code that interacts with the components in the system and verify that the result is correct. Doing this allows us fast feedback when adding or changing functionality (have we broken anything?) and therefore makes sure we can ship working software. Python comes with a test framework in its standard library, unittest and there are also third party libraries (nose2 and pytest, for example).
Reply


Messages In This Thread
Python vector - by cvsae - Jul-27-2019, 10:21 PM
RE: Python vector - by ThomasL - Jul-28-2019, 06:38 AM
RE: Python vector - by cvsae - Jul-28-2019, 02:56 PM
RE: Python vector - by Gribouillis - Jul-28-2019, 05:29 PM
RE: Python vector - by ndc85430 - Aug-25-2019, 06:12 PM

Forum Jump:

User Panel Messages

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