Releases: gtrogers/Cute
Releases · gtrogers/Cute
0.4.0
Tweaks
This version mainly fixes some global variables that were getting created by mistake (thanks @fluffy-critter). It also changes the default start behaviour to do nothing. You have to run cute explicitly with the --cute
or --cute-headless
options.
I'll look at adding alternate ways to set this behaviour in the coming weeks (e.g. a config file or environment variable).
Minions!
In this version
New features
- Added minions to spy on hard to test / side-effecty methods (see the readme for an example)
Cute.fakeGraphics
has been removed in favour of the superior and better namedminion
- Added simple test discovery. Cute will attempt to run any files ending in
_tests.lua
in the test directory (no subdirectory support yet) - Tests can now be focused (e.g. run ignoring all others) with the
f_notion
method and ignored with thex_notion
method.
Fixes
- Fixed a few errors resulting from test and ref values not behaving when printed
- Re-implemented the menu bar changing colour when the tests fail
Better testing syntax
- Switched to a more 'traditional TDD' testing syntax (see examples)
- Removed the
.all()
matcher for now, will re-add if someone needs it - Fake graphics now calls through to
love.graphics
functions starting with get, this meansgraphics.getWidth()
etc. should now work in unit tests.
Added fake graphics and table equality
This adds
- Fake love.graphics functions for testing drawing* see readme for an example
- Table equality via
.likeTable
*note: all love.graphics.getWhatever()
currently return nil
Better GUI
Nicer GUI. Now with colours.