I want to design a framework in Python for testing Development Codes..
For e.g.
I wrote a small program in python only to add to numbers. And now I would like to test this Python code in an automated way by storing the Inputs and expected Output at some place and now I just run the python script to validate the Output.
Can You please help me starting this? Any Good Documentation on testing will be good!!
And Experienced people please share Scope of Python Programming, where it could be used, etc.
Thanks 🙂
If you were thinking of writing your own unit testing library from scratch, that is rather unncessary. There are already many to choose from, including one in the standard library! (unittest)
Nose is a popular alternative to using the standard library’s unittest.
Here’s a good tutorial on using it: http://ivory.idyll.org/articles/nose-intro.html