LambdaTest Community

Find answers, support, and inspiration from other users

Questions
LambdaTest Community
Answered

What are the best practices of automation testing with Python testing framework PyUnit?

I need some valueable information regarding the best practices of automation testing with Python testing framework PyUnit.

Up Vote Down Vote 0 Votes
Posted 4 months ago

Answers


This is a really generic question. What type of tests do you have in mind? Unit tests? Component/integration tests? UI tests? PyUnit is (or it used to be) the default framework for unit tests, but it’s used for pretty much all types of automated testing nowadays. Probably a better idea is to starting using PyTest, a more “pythonic” framework, with better introspections, straightforward assertions (based on language’s assert), organization of tests (using marks), test fixtures (not the usual setup/teardown from xUnit frameworks), elegant test parametrization, tons of useful plugins.

Up Vote Down Vote 0 Votes
Posted 2 months ago