I'm noticing that the destination folder is never cleared out, creating a large historical buildup of screenshots. I've tried a few variations of the config, including omitting and setting the cleanDestination option. This is running on a windows machine.
I noticed another similar issue reported, but that one noted an error trying to remove the folder. I don't see any error. It just never gets deleted.
onPrepare: function () {
require('ts-node').register({
project: 'e2e'
});
//Add a new reporter for each configuration
browser.getProcessedConfig().then(function (config) {
var capabilities = config.capabilities;
jasmine.getEnv().addReporter(
new Jasmine2HtmlReporter({
savePath: 'C:/temp/_jasmineResults/' ,
screenshotsFolder: `/screenshots/`,
consolidateAll: true,
cleanDestination: true,
fileNamePrefix: capabilities.name + '-'
})
);
});
I'm noticing that the destination folder is never cleared out, creating a large historical buildup of screenshots. I've tried a few variations of the config, including omitting and setting the
cleanDestination
option. This is running on a windows machine.I noticed another similar issue reported, but that one noted an error trying to remove the folder. I don't see any error. It just never gets deleted.