mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-31 15:12:06 +00:00 
			
		
		
		
	Add some components to the new testing framework (S part 1) (#6224)
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
This commit is contained in:
		
							
								
								
									
										26
									
								
								tests/components/script/test.esp32-idf.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										26
									
								
								tests/components/script/test.esp32-idf.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,26 @@ | ||||
| script: | ||||
|   - id: my_script | ||||
|     mode: single | ||||
|     then: | ||||
|       - lambda: 'ESP_LOGD("main", "Hello World!");' | ||||
|   - id: my_script_queued | ||||
|     mode: queued | ||||
|     max_runs: 2 | ||||
|     then: | ||||
|       - lambda: 'ESP_LOGD("main", "Hello World!");' | ||||
|   - id: my_script_parallel | ||||
|     mode: parallel | ||||
|     max_runs: 2 | ||||
|     then: | ||||
|       - lambda: 'ESP_LOGD("main", "Hello World!");' | ||||
|   - id: my_script_restart | ||||
|     mode: restart | ||||
|     then: | ||||
|       - lambda: 'ESP_LOGD("main", "Hello World!");' | ||||
|   - id: my_script_with_params | ||||
|     parameters: | ||||
|       prefix: string | ||||
|       param2: int | ||||
|       param3: bool | ||||
|     then: | ||||
|       - lambda: 'ESP_LOGD("main", (prefix + " Hello World!" + to_string(param2) + " " + to_string(param3)).c_str());' | ||||
		Reference in New Issue
	
	Block a user