Skip to content

sakari/haxe-should-openfl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Haxe-should assertions for OpenFL

See https://github.com/sakari/haxe-should for introduction to the general should assertion stuff.

Features

  • match sprite images to bitmaps
  • test framework agnostic (I use massive unit but you don't have to)

Usage

using sakari.should.openfl.Should;
..
var s = new Sprite();
s.graphics.beginFill(0xff0000);
s.graphics.drawRect(0, 0, 10, 10);
s.should().matchImage(Assets.getBitmapData('images/some.png'));

See the tests at test/ShouldTest.hx for more examples.

Testing

openfl test test.xml cpp

Contributing

Please do.

License

MIT

Bitdeli Badge

About

haxe-should assertions for OpenFL

Resources

Stars

Watchers

Forks

Packages

No packages published