1, generate test reports
Import module HtMLtestRunner
import HTMLTestRunner
Using the Module
HTMLTestRunner.HTMLTestReport( stream=fp, title = ' Log test report ' , Description = ' implementation use cases: ' , verbosity=2
Parameter Description:
Save the file stream path
title title
description description description report
The complexity of the test results of verbosity, there are three values
a) 0 (silent mode): You can only get the total number of test cases and the overall result such as a total of 100 successful failure 20 80
b) 1 (default mode): the silent mode is very similar to the successful use only in each embodiment has a front with each failed previous examples have "F" "."
c) 2 (verbose mode): The test results will show all the relevant information for each test case
and you add different parameters on the command line can play the same effect
Reference Source: https: //blog.csdn.net/chenmozhe22/article/details/81298797