【问题标题】:Haxe munit with TravisHaxe munit 与 Travis
【发布时间】:2015-07-06 10:21:53
【问题描述】:

我正在尝试设置 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

特拉维斯在这里报告:https://travis-ci.org/ramchale/quick-haxe

【问题讨论】:

    标签: travis-ci haxe munit


    【解决方案1】:

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

    您应该能够很好地运行系统测试(hxcpp、neko),并且对于实用程序库,它会给您一定程度的“一切正常”的信心。

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

    【讨论】:

    • 谢谢。我希望有一些无头或基于文本的浏览器可以工作,但似乎没有。
    猜你喜欢
    • 2013-01-17
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-03-28
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多