Ensure that a Haxe program will run on all platforms

天大地大妈咪最大 提交于 2019-12-04 16:43:41

I have done some similar things with a few of my libraries (mdown and detox), and I was able to test several of the platforms using MUnit / MassiveUnit:

https://github.com/massiveinteractive/MassiveUnit

This is a unit testing platform that you can use to check your behaviour across multiple targets. There is also utest, and possibly others.

Currently munit can automatically run tests for your code on the following targets:

  • Neko
  • Flash 8
  • Flash 9+
  • Javascript
  • CPP

There are instructions for adding support for other targets here

(If you don't know much about unit testing - it's a way to write lots of small tests to make sure your library/code behaves as expected, and is perfect for checking that things function across platforms, as well as making sure you don't break things when you change your code.)

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!