Open S-S-X opened 2 years ago
From closed duplicate #61
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.
Allow setting strict mode in configuration file.
When strict mode is enabled it should throw errors to fail tests immediately if:
ItemStack:get_metadata()
(method is deprecated)InvRef:set_size("main", -1)
(function returns false to indicate error)InvRef:set_size("main", "1")
(string instead of number)InvRef:set_size("main", 1.2)
(floating point truncated)Possibly could also allow types for strict mode, something like:
strict = types,deprecated
to throw error for type conversions and deprecated calls.strict = all
to throw error on anything not considered accurate or completely valid.Also link to #5