Add testing content

pull/1657/head
Kamran Ahmed 2 years ago
parent 99a2430f4c
commit fd63c1b1fc
  1. 1
      content/roadmaps/107-python/content/100-python-basics/readme.md
  2. 9
      content/roadmaps/107-python/content/107-python-testing/100-unittest-pyunit.md
  3. 10
      content/roadmaps/107-python/content/107-python-testing/101-pytest.md
  4. 8
      content/roadmaps/107-python/content/107-python-testing/102-doctest.md
  5. 10
      content/roadmaps/107-python/content/107-python-testing/102-nose.md
  6. 8
      content/roadmaps/107-python/content/107-python-testing/readme.md

@ -4,6 +4,7 @@ Python is a high-level, interpreted, general-purpose programming language. Its d
<ResourceGroupTitle>Free Content</ResourceGroupTitle>
<BadgeLink colorScheme='blue' badgeText='Official Website' href='https://www.python.org/'>Official Website: Python</BadgeLink>
<BadgeLink colorScheme='yellow' badgeText='Read' href='https://www.digitalocean.com/community/tutorials/how-to-write-your-first-python-3-program'>Tutorial Series: How to Code in Python</BadgeLink>
<BadgeLink colorScheme='yellow' badgeText='Read' href='https://en.wikipedia.org/wiki/Python_(programming_language)'>Python Wikipedia</BadgeLink>

@ -1 +1,8 @@
# Unittest pyunit
# PyUnit / Unittest
PyUnit is an easy way to create unit testing programs and UnitTests with Python. (Note that docs.python.org uses the name "unittest", which is also the module name.)
<ResourceGroupTitle>Free Content</ResourceGroupTitle>
<BadgeLink colorScheme='yellow' badgeText='Read' href='https://www.digitalocean.com/community/tutorials/how-to-use-unittest-to-write-a-test-case-for-a-function-in-python'>How To Use unittest to Write a Test Case for a Function in Python</BadgeLink>
<BadgeLink colorScheme='yellow' badgeText='Read' href='https://wiki.python.org/moin/PyUnit%C2%A0'>PyUnit Docs</BadgeLink>
<BadgeLink colorScheme='yellow' badgeText='Read' href='https://machinelearningmastery.com/a-gentle-introduction-to-unit-testing-in-python/'>A Gentle Introduction to Unit Testing in Python</BadgeLink>

@ -1 +1,9 @@
# Pytest
# pytest
pytest is a mature full-featured Python testing tool that helps you write better programs.
<ResourceGroupTitle>Free Content</ResourceGroupTitle>
<BadgeLink colorScheme='blue' badgeText='Official Docs' href='https://docs.pytest.org/'>Official Docs</BadgeLink>
<BadgeLink colorScheme='yellow' badgeText='Read' href='https://www.tutorialspoint.com/pytest/index.htm'>Pytest Tutorial</BadgeLink>

@ -1 +1,7 @@
# Doctest
# Doctest
Python’s standard library comes equipped with a test framework module called doctest. The doctest module programmatically searches Python code for pieces of text within comments that look like interactive Python sessions. Then, the module executes those sessions to confirm that the code referenced by a doctest runs as expected.
<ResourceGroupTitle>Free Content</ResourceGroupTitle>
<BadgeLink colorScheme='blue' badgeText='Official Docs' href='https://docs.python.org/3/library/doctest.html'>Doctest module reference</BadgeLink>
<BadgeLink colorScheme='yellow' badgeText='Read' href='https://www.digitalocean.com/community/tutorials/how-to-write-doctests-in-python'>How To Write Doctests in Python</BadgeLink>

@ -1 +1,9 @@
# Nose
# Nose
Nose is another opensource testing framework that extends `unittest` to provide a more flexible testing framework.
<ResourceGroupTitle>Free Content</ResourceGroupTitle>
<BadgeLink colorScheme='yellow' badgeText='Read' href='https://nose.readthedocs.io/en/latest/'>Introduction to Nose</BadgeLink>
<BadgeLink colorScheme='yellow' badgeText='Read' href='https://www.lambdatest.com/blog/selenium-python-nose-tutorial/'>Getting Started With Nose In Python</BadgeLink>

@ -1 +1,7 @@
# Python testing
# Testing
A key to building software that meets requirements without defects is testing. Software testing helps developers know they are building the right software. When tests are run as part of the development process (often with continuous integration tools), they build confidence and prevent regressions in the code.
<ResourceGroupTitle>Free Content</ResourceGroupTitle>
<BadgeLink colorScheme='yellow' badgeText='Read' href='https://www.guru99.com/software-testing-introduction-importance.html'>What is Software Testing?</BadgeLink>
<BadgeLink colorScheme='yellow' badgeText='Read' href='https://www.browserstack.com/guide/testing-pyramid-for-test-automation'>Testing Pyramid</BadgeLink>

Loading…
Cancel
Save