Demonstration of Unit Testing Python Programs

Authors

  • S N V Satyanarayana P

Keywords:

Software Testing, Python, Unit Testing, doctest, unittest, Test case.

Abstract

Software Testing plays the most prominent role in ensuring the quality of software. Unit testing tests an individual program with the intent of finding errors in it before it is integrated with the other programs of the software. Like JUnit for Java, most of the popular programming languages have been implemented such unit testing frameworks for testing individual programs before integration. In this paper, I presented the details of unit testing framework (doctest, unittest) supported by Python and process of unit testing python programs. I also showcased writing test cases and executing them with illustrations and results.

Metrics

Metrics Loading ...

Downloads

Published

31-12-2018

How to Cite

P, S. N. V. S. (2018). Demonstration of Unit Testing Python Programs. Caribbean Journal of Sciences and Technology, 6(1), 80–89. Retrieved from https://caribjscitech.com/index.php/cjst/article/view/25

Issue

Section

Research Article