I’m sure this topic comes up a lot, but it’s surprisingly difficult to find information about it. I’m starting up a new flixel project and want to have good unit testing from the start, but am having difficulty finding a “nice” way to do it.
After fiddling for a bit, I did come up with a way to unit test by executing
lime test text.xml neko, effectively invoking lime on a test project which includes the sources for both my project and test files. It works, but it takes a while (~7 seconds) to build and has to bring up a window in the process. And it takes that long even if I just want to run a single test.
At first I was trying to use standard haxe compilation by specifying lime, openfl, and flixel as libraries, but it was popping up with a plethora of errors, such as
openfl.display.BitmapData should be flash.display.BitmapData.
So I’m mostly curious about this: Has the community landed on a canonical way of doing unit testing in an OpenFL project, or is what I’m currently doing standard practice?