Здравствуйте, я скачал testcafe-reporter-html-testrail и использовал его в своем проекте testcafe. Если я даю собственное имя для отчета, то его не удается правильно сохранить, т. Е. Отчет не завершен, он почти пустой с несколькими строками ... Однако, если я НЕ даю произвольное имя, тогда отчет сохраняется в формате Report_TIMESTAMP. html (например, Report_16_5_2018_14_46_46.html) Что я здесь не так делаю?
const createTestCafe = require('testcafe');
let testcafe = null;
createTestCafe()
.then(tc => {
testcafe = tc;
const runner = testcafe.createRunner();
let id;
const deadlinePromise = new Promise((resolve,reject) => {
id=setTimeout(() => {
clearTimeout(id);
reject('testcase couldnt meet the actual preferred time');
},215000)
});
const runPromise=runner
.src(test1.ts)
.browsers('chrome:headless')
// what am I doing wrong in the below step? the report is not saving properly
.reporter('html-testrail', 'Reports/report1.html')
.run({skipJsErrors:true})
race =Promise.race([runPromise,deadlinePromise])
race.then((res) => console.log(res))
})
.catch(failedCount => {
console.log('Tests1 failed: ' + failedCount);
testcafe.close();
})