@@ -46,7 +46,7 @@ func newDefaultRunOption() *runOption {
4646	}
4747}
4848
49- func  newDiskCardRunOption () * runOption  {
49+ func  newDiscardRunOption () * runOption  {
5050	return  & runOption {
5151		reporter :     runner .NewDiscardTestReporter (),
5252		reportWriter : runner .NewDiscardResultWriter (),
@@ -74,7 +74,7 @@ See also https://github.com/LinuxSuRen/api-testing/tree/master/sample`,
7474	flags .DurationVarP (& opt .duration , "duration" , "" , 0 , "Running duration" )
7575	flags .DurationVarP (& opt .requestTimeout , "request-timeout" , "" , time .Minute , "Timeout for per request" )
7676	flags .BoolVarP (& opt .requestIgnoreError , "request-ignore-error" , "" , false , "Indicate if ignore the request error" )
77- 	flags .StringVarP (& opt .report , "report" , "" , "" , "The type of target report. Supported: markdown, md, discard, std" )
77+ 	flags .StringVarP (& opt .report , "report" , "" , "" , "The type of target report. Supported: markdown, md, html,  discard, std" )
7878	flags .StringVarP (& opt .reportFile , "report-file" , "" , "" , "The file path of the report" )
7979	flags .BoolVarP (& opt .reportIgnore , "report-ignore" , "" , false , "Indicate if ignore the report output" )
8080	flags .Int64VarP (& opt .thread , "thread" , "" , 1 , "Threads of the execution" )
@@ -98,6 +98,8 @@ func (o *runOption) preRunE(cmd *cobra.Command, args []string) (err error) {
9898	switch  o .report  {
9999	case  "markdown" , "md" :
100100		o .reportWriter  =  runner .NewMarkdownResultWriter (writer )
101+ 	case  "html" :
102+ 		o .reportWriter  =  runner .NewHTMLResultWriter (writer )
101103	case  "discard" :
102104		o .reportWriter  =  runner .NewDiscardResultWriter ()
103105	case  "" , "std" :
@@ -178,7 +180,7 @@ func (o *runOption) runSuiteWithDuration(suite string) (err error) {
178180				defer  sem .Release (1 )
179181				defer  wait .Done ()
180182				defer  func () {
181- 					fmt .Println ("routing end with" , time .Now (). Sub (now ))
183+ 					fmt .Println ("routing end with" , time .Since (now ))
182184				}()
183185
184186				dataContext  :=  getDefaultContext ()
0 commit comments