phantom-jasmine:Phantom.js 的 Jasmine runner

时间:2021-06-13 09:36:05
【文件属性】:
文件名称:phantom-jasmine:Phantom.js 的 Jasmine runner
文件大小:28KB
文件格式:ZIP
更新时间:2021-06-13 09:36:05
JavaScript 幻影茉莉 Phantom-Jasmine 是一组简单的两个脚本,用于通过 Phantom.js ( ) 运行您的 Jasmine 测试。 第一个脚本 lib/console-runner.js 是 Jasmine 的一个插件,它通过 console.log(包含在 TestRunner.html 中的脚本标签中)输出测试结果(带有 ansi 颜色代码)。 第二个脚本 lib/run_jasmine_test.coffee 将 html 文件作为第一个也是唯一的参数,然后执行文件加载的任何 Jasmine 测试。 有关更多详细信息,请参见下文。 安装 假设您已经设置并安装了 PhantomJs... sudo npm install phantom-jasmine -g 运行测试 phantom-jasmine examples/TestRunner.html 在某些正在运行的 OS
【文件预览】:
phantom-jasmine-master
----bin()
--------phantom-jasmine(311B)
----vendor()
--------jasmine-1.2.0()
----package.json(541B)
----readme.md(1KB)
----examples()
--------TestRunner.html(942B)
--------js()
----lib()
--------console-runner.js(3KB)
--------run_jasmine_test.coffee(1KB)

网友评论