运行量角器测试后。 jasmine-reporter的输出目录未生成。
我正在Mac上运行此配置。
我的Conf文件:
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
let protractor_1 = require("protractor");
exports.config = {
directConnect: true,
capabilities: {
'browserName': 'chrome'
},
framework: 'jasmine2',
specs: ['./JSfiles/TS-Scripts/Login-script.js'],
jasmineNodeOpts: {
showColors: true,
DEFAULT_TIMEOUT_INTERVAL: 10000,
includeStackTrace: true,
isVerbose: true
},
onPreapre: function () {
browser.driver.fullscreen();
let jasmineReporters = require('jasmine-reporters');
jasmine.getEnv().addReporter(new jasmineReporters.JUnitXmlReporter({
consolidateAll: true,
savePath: './testResults',
filePrefix: 'xmloutput'
}));
},
};
我的Package.json文件:
{
"name": "typescript-dev-project",
"version": "1.0.0",
"description": "",
"main": "index.js",
"dependencies": {
"@types/jasminewd2": "^2.0.3",
"@types/node": "^10.5.2",
"jasmine": "^3.1.0",
"jasminewd2": "^2.2.0",
"mail-listener3": "0.0.3",
"protractor": "^5.3.2",
"ts-node": "^7.0.0"
},
"devDependencies": {
"jasmine-reporters": "^2.3.2",
"protractor-jasmine2-html-reporter": "0.0.7"
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "",
"license": "ISC"
}
运行conf文件时没有任何错误。但是运行后,我都看不到输出文件夹