forked from minetest-mods/mesecons
		
	Add automated tests for some mods (#605)
Depends on mineunit from https://github.com/S-S-X/mineunit mesecons, mesecons_mvps, mesecons_fpga, and mesecons_luacontroller are now tested.
This commit is contained in:
		
				
					committed by
					
						 GitHub
						GitHub
					
				
			
			
				
	
			
			
			
						parent
						
							2ede29df9c
						
					
				
				
					commit
					c10ce2dbc5
				
			
							
								
								
									
										23
									
								
								.luacheckrc
									
									
									
									
									
								
							
							
						
						
									
										23
									
								
								.luacheckrc
									
									
									
									
									
								
							| @@ -34,3 +34,26 @@ globals = {"mesecon"} | ||||
| files["mesecons/actionqueue.lua"] = { | ||||
| 	globals = {"minetest.registered_globalsteps"}, | ||||
| } | ||||
|  | ||||
| -- Test-specific stuff follows. | ||||
|  | ||||
| local test_conf = { | ||||
| 	read_globals = { | ||||
| 		"assert", | ||||
| 		"fixture", | ||||
| 		"mineunit", | ||||
| 		"Player", | ||||
| 		"sourcefile", | ||||
| 		"world", | ||||
| 	}, | ||||
| } | ||||
| files["*/spec/*.lua"] = test_conf | ||||
| files[".test_fixtures/*.lua"] = test_conf | ||||
|  | ||||
| files[".test_fixtures/screwdriver.lua"] = { | ||||
| 	globals = {"screwdriver"}, | ||||
| } | ||||
|  | ||||
| files[".test_fixtures/mesecons_fpga.lua"] = { | ||||
| 	globals = {"minetest.register_on_player_receive_fields"}, | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user