use maximum step length of background and scenario
in order to avoid panic in printStep (line 217). Fixes #42
Этот коммит содержится в:
		
							родитель
							
								
									a91846c1ab
								
							
						
					
					
						коммит
						65ace21dc8
					
				
					 1 изменённых файлов: 3 добавлений и 0 удалений
				
			
		|  | @ -256,6 +256,9 @@ func (f *pretty) printStepKind(res *stepResult) { | |||
| 	// first step of scenario, print header and calculate comment position | ||||
| 	case f.scenario != nil && f.steps == len(f.scenario.Steps): | ||||
| 		f.commentPos = f.longestStep(f.scenario.Steps, f.length(f.scenario)) | ||||
| 		if bgLen := f.longestStep(f.feature.Background.Steps, f.length(f.feature.Background)); bgLen > f.commentPos { | ||||
| 			f.commentPos = bgLen | ||||
| 		} | ||||
| 		text := s(f.indent) + bcl(f.scenario.Keyword+": ", white) + f.scenario.Name | ||||
| 		text += s(f.commentPos-f.length(f.scenario)+1) + f.line(f.scenario.Location) | ||||
| 		fmt.Println("\n" + text) | ||||
|  |  | |||
		Загрузка…
	
	Создание таблицы
		
		Сослаться в новой задаче
	
	 Ingo Oeser
						Ingo Oeser