Skip to content

Eddie4k-code/pyReport

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pyReport

Simple module / script that can be used to generate HTML reports for tests.

Dependencies -

  • BeautifulSoup (bs4)
  • Instruction

  • Create a Report object - test = Report(Filename, path)
  • Generate the HTML Report File - .startReport()
  • Add a test case to the report and the result - .reportTestCase(Test Case Name, pass/fail, Reason(Optional))
  • Example

    Testing the function add which will add two numbers

    In this situation, if the test case is as expected then it will be reported on the HTML file as a pass, if it fails then it will be reported on the html file as a Fail and a reason can be specified for the failure

    The HTML Report

    This is where all the results will be shown