You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When this property is specified, it appears the very first time a test suite runs, the framework runs into an infinite loop. All I see is the continued error "closing report" getting logged to the console. A normal build at my current job, for the sytem under test, takes about 20 minutes; however, when I made this change, it took over 2hrs, and I had to abort it. The configuration:
let HtmlScreenshotReporter = require('protractor-jasmine2-screenshot-reporter');
let htmlScreenshotReporter = new HtmlScreenshotReporter({
dest: 'reports/screenshots',
filename: 'e2e-screenshots.html',
captureOnlyFailedSpecs: true,
reportOnlyFailedSpecs: false,
cleanDestination: false,
reportTitle: "End-To-End Test Results"
})
onPrepare() {
// Assign the test reporter to each running instance
jasmine.getEnv().addReporter(htmlScreenshotReporter);
}
// Setup the report before any tests start
beforeLaunch: function() {
return new Promise(function(resolve){
htmlScreenshotReporter.beforeLaunch(resolve);
//By default, no report is generated if an exception is thrown from within the test run. We can, however, catch these errors and make jasmine report current spec explicitly, with the following code.
process.on('uncaughtException', function () {
htmlScreenshotReporter.jasmineDone();
htmlScreenshotReporter.afterLaunch();
});
});
}
// Close the report after all tests finish
afterLaunch: function(exitCode) {
return new Promise(function(resolve){
htmlScreenshotReporter.afterLaunch(resolve.bind(this, exitCode));
});
}
The text was updated successfully, but these errors were encountered:
When this property is specified, it appears the very first time a test suite runs, the framework runs into an infinite loop. All I see is the continued error "closing report" getting logged to the console. A normal build at my current job, for the sytem under test, takes about 20 minutes; however, when I made this change, it took over 2hrs, and I had to abort it.
The configuration:
let HtmlScreenshotReporter = require('protractor-jasmine2-screenshot-reporter');
let htmlScreenshotReporter = new HtmlScreenshotReporter({
dest: 'reports/screenshots',
filename: 'e2e-screenshots.html',
captureOnlyFailedSpecs: true,
reportOnlyFailedSpecs: false,
cleanDestination: false,
reportTitle: "End-To-End Test Results"
})
onPrepare() {
// Assign the test reporter to each running instance
jasmine.getEnv().addReporter(htmlScreenshotReporter);
}
// Setup the report before any tests start
beforeLaunch: function() {
return new Promise(function(resolve){
htmlScreenshotReporter.beforeLaunch(resolve);
}
// Close the report after all tests finish
afterLaunch: function(exitCode) {
return new Promise(function(resolve){
htmlScreenshotReporter.afterLaunch(resolve.bind(this, exitCode));
});
}
The text was updated successfully, but these errors were encountered: