Skip to content

Instantly share code, notes, and snippets.

@sahmeepee
Created June 18, 2021 22:57
Show Gist options
  • Save sahmeepee/57245410f9314bebc31d5c44b5201640 to your computer and use it in GitHub Desktop.
Save sahmeepee/57245410f9314bebc31d5c44b5201640 to your computer and use it in GitHub Desktop.
VSCode basic setup for Playwright Test Runner
{
"version": "0.2.0",
"configurations": [
{
"name": "Launch all tests",
"request": "launch",
"runtimeArgs": [
"run-script",
"tests"
],
"runtimeExecutable": "npm",
"skipFiles": [
"<node_internals>/**"
],
"type": "pwa-node"
}
]
}
{
"name": "yourprojectname",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"tests": "npx playwright test"
},
"keywords": [],
"author": "",
"license": "ISC",
"devDependencies": {
"@playwright/test": "^1.12.2",
"playwright": "^1.12.2"
}
}
@sahmeepee
Copy link
Author

Runs all tests the test runner can find using the default config or config in playwright.config.js

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment