S-S-X / mineunit

Minetest core / engine libraries for regression tests
Other
10 stars 6 forks source link

Allow configuring behavior on deprecated function calls #61

Closed S-S-X closed 2 years ago

S-S-X commented 2 years ago

Currently behavior for marked functions is to simply fail by throwing Lua error. With configuration allow deprecated calls without failure but instead log warnings / errors for deprecated calls.

This would require implementing or aliasing deprecated functions at least in some cases.

S-S-X commented 2 years ago

Option: lazy failure to allow continuing test case and make calls to deprecated functions fail test case after completion. This allows prioritizing other assertions and completion of whole test cases even with deprecated function calls but would still fail at the end.

S-S-X commented 2 years ago

Duplicate #64