Skip to content

Output dir doesn't auto create when tests run by command 'codeceptjs run-workers 5' #2154

@Elverslane

Description

@Elverslane

What are you trying to achieve?

I want to see my tests passed after running like codeceptjs run-workers 5 and save screenshot

What do you get instead?

instead I get error ENOENT: no such file or directory, open '/Users/WebstormProjects/e2e/.codeceptjs-output/test.png'
because output dir was not created

Details

  • CodeceptJS version: 2.3.6
  • Operating System: macos
  • puppeteer
exports.config = {
    tests: './user-scenario/**/*.test.ts',
    output: '../../.codeceptjs-output',
    plugins: {
        customLocator: {
            enabled: true,
            attribute: 'data-test',
            showActual: true,
        },
    },
    helpers: {
        Puppeteer: {
            waitForTimeout: 3000,
            waitForAction: 200,
            show: !!process.env.VISUAL,
            chrome: {
                args: ['--no-sandbox', '--disable-setuid-sandbox'],
                defaultViewport: {
                    width: 1280,
                    height: 960,
                },
                executablePath: process.env.CHROMIUM_PATH,
            },
        },
    },
    include: {
        I: './settings/steps.js',
    },
    bootstrap: null,
    mocha: {},
    name: 'e2e',
    require: ['ts-node/e2e'],
};

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions