Skip to content

Support using an array to define testcafeTestRunner.customArguments #51

@avanlent-eci

Description

@avanlent-eci

To make the "testcafeTestRunner.customArguments" setting value a bit more readable, it would be nice if entering an array of arguments is supported as well, like this:

{
  "testcafeTestRunner.customArguments": [
    "--window-size=1920,1080",
    "--window-position=0,0", 
    "--no-sandbox",
    "--disable-extensions",
    "--screenshots apps/myapp/e2e/screenshots",
    "--screenshots-on-fails",
    "--screenshots-full-page",
    "--disable-features=DarkMode",
    "--screenshot-path-pattern \"${DATE}_${TIME}/${FIXTURE}/${TEST}/${BROWSER}.png\"",
    "--video apps/myapp/e2e/videos",
    "--video-options failedOnly=true,singleFile=true",
    "--video-encoding-options r=30,crf=18"
  ]
}

Instead of just this:

{
  "testcafeTestRunner.customArguments": "--window-size=1920,1080 --window-position=0,0 --no-sandbox --disable-extensions --disable-web-security --disable-dev-shm-usage --screenshots apps/myapp/e2e/screenshots --screenshots-on-fails --screenshots-full-page --disable-features=DarkMode --screenshot-path-pattern \"${DATE}_${TIME}/${FIXTURE}/{TEST}/${BROWSER}.png\" --video apps/myapp/e2e/videos --video-options failedOnly=true,singleFile=true --video-encoding-options r=30,crf=18"
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions