You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create two new testing mods to do data stage checks. One mod should run first, before any other mods. Other mod should run last.
Tests
Missing recipe tints
Currently, if the unit test mod is enabled, Angel's Petrochem will check for missing recipe tints and print a warning to log. This could be moved to the new mod.
Accidental globals
Check for references to undeclared variables and accidental globals. These type of issues had been fixed in #819.
setmetatable(_G, {
__newindex=function (_, n)
error("attempt to write to undeclared variable "..n)
end,
__index=function (_, n)
error("attempt to read undeclared variable "..n)
end,
})
The text was updated successfully, but these errors were encountered:
Create two new testing mods to do data stage checks. One mod should run first, before any other mods. Other mod should run last.
I am still of the opinion that the angelsdev-unit-test can take the role as the one loading last. If we do want to test some complex entities in the future (requiring custom event handling), then having the unit test run last will be wanted anyway...
=> 1 new mod to load before other mods
=> extend the unit test mod to do verifications on the 'final' data structure in data-final-fixes
I am still of the opinion that the angelsdev-unit-test can take the role as the one loading last.
As long as we only use optional dependencies, that should be okay with me. I want to be able to run the unit tests against other mod packs, not just Angel's.
Data Stage Test Mods
Idea was suggested in discussion on PR #819.
Create two new testing mods to do data stage checks. One mod should run first, before any other mods. Other mod should run last.
Tests
Missing recipe tints
Currently, if the unit test mod is enabled, Angel's Petrochem will check for missing recipe tints and print a warning to log. This could be moved to the new mod.
Accidental globals
Check for references to undeclared variables and accidental globals. These type of issues had been fixed in #819.
The text was updated successfully, but these errors were encountered: