Skip to content

Latest commit

 

History

History
19 lines (15 loc) · 998 Bytes

README.md

File metadata and controls

19 lines (15 loc) · 998 Bytes

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