Python unittest passing arguments

后端 未结 6 1048
伪装坚强ぢ
伪装坚强ぢ 2020-11-28 23:16

In python how would I pass an argument from the command line to a unittest function. Here is the code so far… I know it\'s wrong.

class TestingClass(unittes         


        
6条回答
  •  温柔的废话
    2020-11-28 23:30

    Unit testing is meant for testing the very basic functionality (the lowest level functions of the application) to be sure that your application building blocks work correctly. There is probably no formal definition of what does that exactly mean, but you should consider other kinds of testing for the bigger functionality -- see Integration testing. The unit testing framework may not be ideal for the purpose.

提交回复
热议问题