I’m interested in a straighforward way to write unit tests for an openfl project
I tried munit like this:
openfl create project SomeProject
haxelib run munit config
This is the resulting munit configuration:
src=test
bin=build
report=report
hxml=test.hxml
classPaths=Source
resources=Assets
Now write some code with some tests and then:
run munit test -js
it will test classes that don’t use open fl just fine. for the classes that do use openfl it complains it can’t
find openfl.* so I added -lib openfl to the test.hxml (which is used by munit), after which it
complains about lime, so I add -lib lime and then I get:
/usr/lib/haxe/lib/lime/2,4,9/lime/utils/ByteArray.hx:334: characters 30-43 : Unknown identifier : File
So it feels like I’m going about this the wrong way.