Sep-11-2022, 08:00 AM
What is your program doing if it's taking so long to run? Maybe that's a reasonable time, but it's impossible to say without knowing any details.
On testing, there are different approaches and tools for doing this. Since your code likely has no tests right now, one approach for getting it under test is called approvals testing. Emily Bache gave a great talk on the idea: https://youtu.be/NOxThHYEX9I. Her examples are in Java, but unsurprisingly, approvals testing frameworks exist for Python (e.g. https://github.com/approvals/ApprovalTests.Python).
On testing, there are different approaches and tools for doing this. Since your code likely has no tests right now, one approach for getting it under test is called approvals testing. Emily Bache gave a great talk on the idea: https://youtu.be/NOxThHYEX9I. Her examples are in Java, but unsurprisingly, approvals testing frameworks exist for Python (e.g. https://github.com/approvals/ApprovalTests.Python).