Answers for "python unittest coverage main function"

0

python unittest coverage main function

# N.B. works for Python, no guarantee with other languages.
# if you want to exclude the 'main' function in the test
# create a .coveragerc file and write the following lines:

[report]

exclude_lines =
    if __name__ == .__main__.:
Posted by: Guest on April-08-2022

Python Answers by Framework

Browse Popular Code Answers by Language