Kenzitron / protractor-jasmine2-html-reporter

HTML reporter for Jasmine2 and Protractor
32 stars 53 forks source link

Reports folder not cleaned out #52

Open brassier opened 7 years ago

brassier commented 7 years ago

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 + '-'
            })
        );
    });
proudSDET commented 7 years ago

I am also facing this problem, have you found any workaround?