Tag: 魅力

如何从gradle任务中打开魅力?

我对gradle很陌生,试图编写一个gradle任务来生成和打开诱惑报告。 我正在尝试使用gradle节点插件(com.moowork.node)来使用“allure-commandline”节点包。 报告运行良好,当我有一个自定义节点脚本,而不是从默认的allure-commandline脚本从gradle做同样的事情。报告过程我认为在后台工作,因此,即不打开。 task allure(type: NodeTask){ script =file('node_modules/allure-commandline/index.js') args = ["allure","generate","allureResults","–clean","-o","allureReport"] args = ["allure","open","allureReport"] } 此节点任务工作: task nodeAllure(type: NodeTask){ script =file('allure.js') } 我的allure.js: var allure = require('allure-commandline'); // returns ChildProcess instance var generation = allure(['generate', 'reports/allure-results','–clean','-o','allure-report']); generation.on('exit', function(exitCode) { allure(['open','allure-report']); });

Mocha-aure-reporter不使用节点js

当我用mocha-alure-reporter运行我的testing时,我遇到了问题,testing用mocha成功运行,但是mocha –reporter mocha-aure-reporter返回以下错误 > notifications-api@1.0.0 test /app > mocha –reporter mocha-allure-reporter 2016-11-15T06:13:26.762Z – info: Notification API up and running on port 4000 2016-11-15T06:13:26.773Z – error: Tue, 15 Nov 2016 06:13:26 GMT uncaughtException 2016-11-15T06:13:26.775Z – error: TypeError: test.currentRetry is not a function at Runner.<anonymous> (/app/node_modules/mocha-allure-reporter/index.js:29:19) at emitOne (events.js:77:13) at Runner.emit (events.js:169:7) at next (/app/node_modules/mocha/lib/runner.js:517:10) at Runner.runTests […]