mirror of
https://github.com/openclaw/openclaw.git
synced 2026-06-06 05:51:15 +08:00
docs: document vitest routing maps
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
// Test routing globs for agent core, embedded-agent, tool, and support suites.
|
||||
export const agentsAllTestPatterns = ["src/agents/**/*.test.ts"];
|
||||
|
||||
export const agentsCoreTestPatterns = ["src/agents/*.test.ts"];
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Test routing roots and globs for core channel tests and channel plugin tests.
|
||||
import path from "node:path";
|
||||
import { BUNDLED_PLUGIN_PATH_PREFIX } from "../../scripts/lib/bundled-plugin-paths.mjs";
|
||||
import { splitChannelExtensionTestRoots } from "./vitest.extension-channel-split-paths.mjs";
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Test routing map for lightweight command tests and their source triggers.
|
||||
const normalizeRepoPath = (value) => value.replaceAll("\\", "/");
|
||||
|
||||
const commandsLightEntries = [
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Test routing roots for the ACP extension suite.
|
||||
export const acpxExtensionTestRoots = ["extensions/acpx"];
|
||||
|
||||
export function isAcpxExtensionRoot(root) {
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Test routing roots for active-memory extension tests.
|
||||
export const activeMemoryExtensionTestRoots = ["extensions/active-memory"];
|
||||
|
||||
export function isActiveMemoryExtensionRoot(root) {
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Test routing roots for browser extension tests.
|
||||
export const browserExtensionTestRoots = ["extensions/browser"];
|
||||
|
||||
export function isBrowserExtensionRoot(root) {
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Test routing specs for channel plugins split into dedicated Vitest configs.
|
||||
import { bundledPluginRoot } from "../../scripts/lib/bundled-plugin-paths.mjs";
|
||||
|
||||
export const splitChannelExtensionShardSpecs = [
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Test routing roots for Codex extension tests.
|
||||
export const codexExtensionTestRoots = ["extensions/codex"];
|
||||
|
||||
export function isCodexExtensionRoot(root) {
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Test routing roots for diffs extension tests.
|
||||
export const diffsExtensionTestRoots = ["extensions/diffs"];
|
||||
|
||||
export function isDiffsExtensionRoot(root) {
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Test routing roots for Feishu extension tests.
|
||||
import { bundledPluginRoot } from "../../scripts/lib/bundled-plugin-paths.mjs";
|
||||
|
||||
export const feishuExtensionIds = ["feishu"];
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Test routing roots for IRC extension tests.
|
||||
export const ircExtensionTestRoots = ["extensions/irc"];
|
||||
|
||||
export function isIrcExtensionRoot(root) {
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Test routing roots for Matrix extension tests.
|
||||
import { bundledPluginRoot } from "../../scripts/lib/bundled-plugin-paths.mjs";
|
||||
|
||||
export const matrixExtensionIds = ["matrix"];
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Test routing roots for Mattermost extension tests.
|
||||
import { bundledPluginRoot } from "../../scripts/lib/bundled-plugin-paths.mjs";
|
||||
|
||||
export const mattermostExtensionIds = ["mattermost"];
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Test routing roots for media generation, media understanding, and voice plugins.
|
||||
export const mediaExtensionTestRoots = [
|
||||
"extensions/alibaba",
|
||||
"extensions/deepgram",
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Test routing roots for memory extension suites.
|
||||
export const memoryExtensionTestRoots = [
|
||||
"extensions/memory-core",
|
||||
"extensions/memory-lancedb",
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Test routing roots for miscellaneous messaging extension suites.
|
||||
import { bundledPluginRoot } from "../../scripts/lib/bundled-plugin-paths.mjs";
|
||||
|
||||
export const messagingExtensionIds = [
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Test routing roots for miscellaneous provider/tool extension suites.
|
||||
export const miscExtensionTestRoots = [
|
||||
"extensions/arcee",
|
||||
"extensions/brave",
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Test routing roots for Microsoft Teams extension tests.
|
||||
import { bundledPluginRoot } from "../../scripts/lib/bundled-plugin-paths.mjs";
|
||||
|
||||
export const msTeamsExtensionIds = ["msteams"];
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Test routing roots for model provider extension suites.
|
||||
import { bundledPluginRoot } from "../../scripts/lib/bundled-plugin-paths.mjs";
|
||||
|
||||
export const providerExtensionIds = [
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Test routing roots for QA channel/lab extension tests.
|
||||
export const qaExtensionTestRoots = ["extensions/qa-channel", "extensions/qa-lab"];
|
||||
|
||||
export function isQaExtensionRoot(root) {
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Test routing roots for Telegram extension tests.
|
||||
export const telegramExtensionTestRoots = ["extensions/telegram"];
|
||||
|
||||
export function isTelegramExtensionRoot(root) {
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Test routing roots for voice-call extension tests.
|
||||
import { bundledPluginRoot } from "../../scripts/lib/bundled-plugin-paths.mjs";
|
||||
|
||||
export const voiceCallExtensionIds = ["voice-call"];
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Test routing roots for WhatsApp extension tests.
|
||||
import { bundledPluginRoot } from "../../scripts/lib/bundled-plugin-paths.mjs";
|
||||
|
||||
export const whatsAppExtensionIds = ["whatsapp"];
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Test routing roots for Zalo extension tests.
|
||||
export const zaloExtensionTestRoots = ["extensions/zalo", "extensions/zalouser"];
|
||||
|
||||
export function isZaloExtensionRoot(root) {
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Test routing map for lightweight plugin SDK tests and source triggers.
|
||||
const normalizeRepoPath = (value) => value.replaceAll("\\", "/");
|
||||
|
||||
const pluginSdkLightEntries = [
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Full-suite Vitest shard definitions used by test-projects and CI planning.
|
||||
export const autoReplyCoreTestInclude = ["src/auto-reply/*.test.ts"];
|
||||
|
||||
export const autoReplyCoreTestExclude = ["src/auto-reply/reply*.test.ts"];
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Test routing globs and predicates for UI unit tests.
|
||||
export const unitUiIncludePatterns = [
|
||||
"ui/src/ui/app-chat.test.ts",
|
||||
"ui/src/ui/chat/**/*.test.ts",
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Unit-fast test discovery and classification helpers for fast local routing.
|
||||
import { spawnSync } from "node:child_process";
|
||||
import fs from "node:fs";
|
||||
import path from "node:path";
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Unit test routing globs and boundary/bundled-plugin exclusions.
|
||||
import path from "node:path";
|
||||
import { BUNDLED_PLUGIN_ROOT_DIR } from "../../scripts/lib/bundled-plugin-paths.mjs";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user