Travis 的 Haxe munit

Haxe munit with Travis

我正在尝试将 Travis 设置为 运行 Haxe 库的 munit 测试。它会安装依赖项,但在尝试 运行 第一次测试时会失败。如有任何建议,我们将不胜感激。

Massive Unit - Copyright 2015 Massive Interactive. Version 2.1.0
   haxe -main TestMain -lib munit -lib hamcrest -cp quick-haxe quick-haxe -cp test -swf-version 11 -swf build/as3_test.swf
/usr/bin/xdg-open: 461: /usr/bin/xdg-open: links2: not found
/usr/bin/xdg-open: 461: /usr/bin/xdg-open: links: not found
/usr/bin/xdg-open: 461: /usr/bin/xdg-open: lynx: not found
/usr/bin/xdg-open: 461: /usr/bin/xdg-open: w3m: not found
xdg-open: no method available for opening 'http://localhost:2000/tmp/runner/index.html'
Error: Error running http://localhost:2000/tmp/runner/index.html

此处回购:https://github.com/ramchale/quick-haxe

Travis 在此报告:https://travis-ci.org/ramchale/quick-haxe

munit 测试 运行ner 试图在浏览器中 运行 您的测试,它通过调用 unix 系统上的 open 工具启动。 Travis 支持无头浏览器,但 munit 不支持 (AFAIK)。

您应该能够 运行 系统测试(hxcpp、neko),并且对于实用程序库,它会给您一定程度的 "things are working" 信心。

Haxe 编译器 运行s JS/Flash 通过 SauceLabs 进行测试,但不使用 munit。