Spies and some other wonders.
I've "dog food"ed the doubles, stubs, and spies more in my own game and I think they are pretty stable. This release contains some tweaks to doubles and stubs and the introduction of spies as well as some other testing goodness.
Features
inner_class_name
option for editor node, command line, and .gutconfig.json.assert_exports
: Assert that script exports a variable with a specific type. Thanks Myrkrheim- Command line now returns
0
when all tests pass and1
if there are any failures. Thanks cmfcmf. - You can now set the opacity for the GUI through a command line option or the
.gutconfig.json
file. That one is also thanks to Myrkheim. - Spies (experimental)
- You can make assertions now about method calls on doubled objects.
assert_called
assert_not_called
assert_call_count
Fixes
- Fixed issue with duplicate methods in doubled classes.