Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reports folder not cleaned out #52

Open
brassier opened this issue Apr 26, 2017 · 1 comment
Open

Reports folder not cleaned out #52

brassier opened this issue Apr 26, 2017 · 1 comment

Comments

@brassier
Copy link

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants