test(chat): select real LLM coverage by tag
- Keep one canonical Playwright project for browser tests\n- Exclude @real-llm from the default command and select it explicitly when requested\n- Remove the redundant config and project
This commit is contained in:
parent
b9731f6a90
commit
a6b6b2bb5b
|
|
@ -48,8 +48,8 @@
|
|||
"check:packages": "bun tools/package-quality/src/cli.ts check",
|
||||
"check:arch": "steiger .",
|
||||
"check:vue": "vue-tsc --noEmit -p tsconfig.json && vue-tsc --noEmit -p packages/vue/tsconfig.json",
|
||||
"test": "playwright test --project=openpencil",
|
||||
"test:real-llm": "playwright test --config=playwright.real-llm.config.ts",
|
||||
"test": "playwright test --project=openpencil --grep-invert @real-llm",
|
||||
"test:real-llm": "playwright test --project=openpencil --grep @real-llm",
|
||||
"test:update": "playwright test --project=openpencil --update-snapshots",
|
||||
"test:figma": "playwright test --project=figma",
|
||||
"figma:debug": "open -a Figma --args --remote-debugging-port=9222",
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ export default defineConfig({
|
|||
{
|
||||
name: 'openpencil',
|
||||
testDir: './tests/e2e',
|
||||
grepInvert: /@real-llm/,
|
||||
testIgnore: '**/native/**',
|
||||
fullyParallel: false
|
||||
},
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,18 +0,0 @@
|
|||
import { defineConfig } from '@playwright/test'
|
||||
|
||||
import baseConfig from './playwright.config'
|
||||
|
||||
if (!process.env.OPENROUTER_API_KEY) {
|
||||
throw new Error('OPENROUTER_API_KEY is required to run real LLM tests')
|
||||
}
|
||||
|
||||
export default defineConfig(baseConfig, {
|
||||
projects: [
|
||||
{
|
||||
name: 'openpencil-real-llm',
|
||||
testDir: './tests/e2e',
|
||||
grep: /@real-llm/,
|
||||
fullyParallel: false
|
||||
}
|
||||
]
|
||||
})
|
||||
Loading…
Reference in a new issue