Browse Source

feat(testing): Added config for webstorm

pull/3848/head
Muhammed Mustafa 2 years ago
parent
commit
d4e7071485
  1. 12
      .run/test-debug.run.xml
  2. 12
      .run/test.run.xml
  3. 5
      scripts/playwright/package.json

12
.run/test-debug.run.xml

@ -0,0 +1,12 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="test-debug" type="js.build_tools.npm">
<package-json value="$PROJECT_DIR$/scripts/playwright/package.json" />
<command value="run" />
<scripts>
<script value="test-debug" />
</scripts>
<node-interpreter value="project" />
<envs />
<method v="2" />
</configuration>
</component>

12
.run/test.run.xml

@ -0,0 +1,12 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="test" type="js.build_tools.npm" nameIsGenerated="true">
<package-json value="$PROJECT_DIR$/scripts/playwright/package.json" />
<command value="run" />
<scripts>
<script value="test" />
</scripts>
<node-interpreter value="project" />
<envs />
<method v="2" />
</configuration>
</component>

5
scripts/playwright/package.json

@ -3,7 +3,10 @@
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {},
"scripts": {
"test": "npx playwright test",
"test-debug": "npx playwright test -c playwright.config.ts test --headed --project=chromium --repeat-each 1 --retries 0 --timeout 0 --workers 1 --max-failures=1"
},
"keywords": [],
"author": "",
"license": "ISC",

Loading…
Cancel
Save