-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathplaywright.config.mjs
More file actions
44 lines (42 loc) · 1.02 KB
/
playwright.config.mjs
File metadata and controls
44 lines (42 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
import { defineConfig } from "@playwright/test";
const mcpCommand = process.env.MCP_TEST_COMMAND || "node";
const mcpArgs = process.env.MCP_TEST_ARGS
? process.env.MCP_TEST_ARGS.split(" ").filter(Boolean)
: ["dist/stdio.js"];
export default defineConfig({
testDir: "./tests/mcp",
timeout: 120000,
fullyParallel: false,
reporter: [
["list"],
[
"@gleanwork/mcp-server-tester/reporters/mcpReporter",
{
outputDir: ".mcp-test-results",
autoOpen: false,
historyLimit: 20,
},
],
],
projects: [
{
name: "localstack-mcp-server",
use: {
mcpConfig: {
transport: "stdio",
command: mcpCommand,
args: mcpArgs,
cwd: process.cwd(),
quiet: true,
connectTimeoutMs: 30000,
requestTimeoutMs: 300000,
callTimeoutMs: 300000,
env: {
...process.env,
LOCALSTACK_AUTH_TOKEN: process.env.LOCALSTACK_AUTH_TOKEN || "",
},
},
},
},
],
});