mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-19 09:33:53 +00:00
1
.github/workflows/e2e.yml
vendored
1
.github/workflows/e2e.yml
vendored
@@ -4,6 +4,7 @@ on:
|
|||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- 'main'
|
- 'main'
|
||||||
|
- 'feat/e2e/**'
|
||||||
merge_group:
|
merge_group:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|||||||
@@ -15,6 +15,7 @@ export default defineConfig({
|
|||||||
globalSetup: './globalSetup.ts',
|
globalSetup: './globalSetup.ts',
|
||||||
reporters: ['default'],
|
reporters: ['default'],
|
||||||
include: ['**/*.test.ts'],
|
include: ['**/*.test.ts'],
|
||||||
|
exclude: ['**/terminal-bench/*.test.ts', '**/node_modules/**'],
|
||||||
retry: 2,
|
retry: 2,
|
||||||
fileParallelism: false,
|
fileParallelism: false,
|
||||||
},
|
},
|
||||||
|
|||||||
21
integration-tests/vitest.terminal-bench.config.ts
Normal file
21
integration-tests/vitest.terminal-bench.config.ts
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
/**
|
||||||
|
* @license
|
||||||
|
* Copyright 2025 Google LLC
|
||||||
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
import { defineConfig } from 'vitest/config';
|
||||||
|
|
||||||
|
const timeoutMinutes = Number(process.env.TB_TIMEOUT_MINUTES || '30');
|
||||||
|
const testTimeoutMs = timeoutMinutes * 60 * 1000;
|
||||||
|
|
||||||
|
export default defineConfig({
|
||||||
|
test: {
|
||||||
|
testTimeout: testTimeoutMs,
|
||||||
|
globalSetup: './globalSetup.ts',
|
||||||
|
reporters: ['default'],
|
||||||
|
include: ['**/terminal-bench/*.test.ts'],
|
||||||
|
retry: 2,
|
||||||
|
fileParallelism: false,
|
||||||
|
},
|
||||||
|
});
|
||||||
@@ -37,9 +37,9 @@
|
|||||||
"test:integration:sandbox:none": "GEMINI_SANDBOX=false vitest run --root ./integration-tests",
|
"test:integration:sandbox:none": "GEMINI_SANDBOX=false vitest run --root ./integration-tests",
|
||||||
"test:integration:sandbox:docker": "GEMINI_SANDBOX=docker npm run build:sandbox && GEMINI_SANDBOX=docker vitest run --root ./integration-tests",
|
"test:integration:sandbox:docker": "GEMINI_SANDBOX=docker npm run build:sandbox && GEMINI_SANDBOX=docker vitest run --root ./integration-tests",
|
||||||
"test:integration:sandbox:podman": "GEMINI_SANDBOX=podman vitest run --root ./integration-tests",
|
"test:integration:sandbox:podman": "GEMINI_SANDBOX=podman vitest run --root ./integration-tests",
|
||||||
"test:terminal-bench": "cross-env VERBOSE=true KEEP_OUTPUT=true vitest run --root ./integration-tests terminal-bench.test.ts",
|
"test:terminal-bench": "cross-env VERBOSE=true KEEP_OUTPUT=true vitest run --config ./vitest.terminal-bench.config.ts --root ./integration-tests",
|
||||||
"test:terminal-bench:oracle": "cross-env VERBOSE=true KEEP_OUTPUT=true vitest run --root ./integration-tests terminal-bench.test.ts -t 'oracle'",
|
"test:terminal-bench:oracle": "cross-env VERBOSE=true KEEP_OUTPUT=true vitest run --config ./vitest.terminal-bench.config.ts --root ./integration-tests -t 'oracle'",
|
||||||
"test:terminal-bench:qwen": "cross-env VERBOSE=true KEEP_OUTPUT=true vitest run --root ./integration-tests terminal-bench.test.ts -t 'qwen'",
|
"test:terminal-bench:qwen": "cross-env VERBOSE=true KEEP_OUTPUT=true vitest run --config ./vitest.terminal-bench.config.ts --root ./integration-tests -t 'qwen'",
|
||||||
"lint": "eslint . --ext .ts,.tsx && eslint integration-tests",
|
"lint": "eslint . --ext .ts,.tsx && eslint integration-tests",
|
||||||
"lint:fix": "eslint . --fix && eslint integration-tests --fix",
|
"lint:fix": "eslint . --fix && eslint integration-tests --fix",
|
||||||
"lint:ci": "eslint . --ext .ts,.tsx --max-warnings 0 && eslint integration-tests --max-warnings 0",
|
"lint:ci": "eslint . --ext .ts,.tsx --max-warnings 0 && eslint integration-tests --max-warnings 0",
|
||||||
|
|||||||
Reference in New Issue
Block a user