Unit Testing With Python
ActionsTags
(2)- The following repository will be performing a unit test on your python file noted with its given test case. Unit testing tool which I have used is
Pytest. For more information on how to create a unit test case in python follow the given steps. - Create a
name.pyfile - After that create a test case file which you can either name it as
test_name.pyorname_test.py. Remember that includingtest_is important as pytest will be picking up those files which either start or end with keywordtest. - Moving on add this action to your .yml file and that's it you are done.
- Your
test_name.pywill be executed and will return the result.
Unit Testing With Python is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.