而不是custom-folder
,json数据仍然填充在allure-results
onPrepare: function () {
var AllureReporter = require('jasmine-allure-reporter');
jasmine.getEnv().addReporter(new AllureReporter({
allureReport : {
resultsDir : 'custom-folder'
}
}));
};
答案 0 :(得分:1)
您可以尝试使用绝对路径并检查是否能够在自定义路径中生成报告。
onPrepare: function () {
var AllureReporter = require('jasmine-allure-reporter');
var path = require('path');
jasmine.getEnv().addReporter(new AllureReporter({
allureReport : {
resultsDir : path.resolve("./") + '/custom-folder'
}
}));
};