 df26aa1c1c
			
		
	
	
		df26aa1c1c
		
	
	
	
	
		
			
			* 042235c expose StepDef which is needed to formatters * e9474dc fix outline scenario formatting * f02c6ce fix comment position calculation for outlines * 5d7f128 remove step status type, use standard error
		
			
				
	
	
		
			34 строки
		
	
	
	
		
			1,1 КиБ
		
	
	
	
		
			Gherkin
		
	
	
	
	
	
			
		
		
	
	
			34 строки
		
	
	
	
		
			1,1 КиБ
		
	
	
	
		
			Gherkin
		
	
	
	
	
	
| Feature: suite events
 | |
|   In order to run tasks before and after important events
 | |
|   As a test suite
 | |
|   I need to provide a way to hook into these events
 | |
| 
 | |
|   Background:
 | |
|     Given I'm listening to suite events
 | |
| 
 | |
|   Scenario: triggers before scenario event
 | |
|     Given a feature path "features/load.feature:6"
 | |
|     When I run feature suite
 | |
|     Then there was event triggered before scenario "load features within path"
 | |
| 
 | |
|   Scenario: triggers appropriate events for a single scenario
 | |
|     Given a feature path "features/load.feature:6"
 | |
|     When I run feature suite
 | |
|     Then these events had to be fired for a number of times:
 | |
|       | BeforeSuite    | 1 |
 | |
|       | BeforeScenario | 1 |
 | |
|       | BeforeStep     | 3 |
 | |
|       | AfterStep      | 3 |
 | |
|       | AfterScenario  | 1 |
 | |
|       | AfterSuite     | 1 |
 | |
| 
 | |
|   Scenario: triggers appropriate events whole feature
 | |
|     Given a feature path "features/load.feature"
 | |
|     When I run feature suite
 | |
|     Then these events had to be fired for a number of times:
 | |
|       | BeforeSuite    | 1  |
 | |
|       | BeforeScenario | 6  |
 | |
|       | BeforeStep     | 19 |
 | |
|       | AfterStep      | 19 |
 | |
|       | AfterScenario  | 6  |
 | |
|       | AfterSuite     | 1  |
 |