Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
pip install -U pytest

xxdxd 


Other frameworks for testing Python code:

ProsPros:

  • Supports unittest.
  • Open-source.
  • Well-written documentation.
  • Allows writing simple and compact test suits.
  • Allows test parametrization.
  • Test written using Pytest are extensible, there are many plugins available.
  • Provides fixtures.
  • Capable of executing multiple test cases simultaneously.
  • Capable of skipping selected test methods from a group of methods during execution.
  • Allows generating HTML test results.

...