Skip to content

Commit c79c5a6

Browse files
committed
wip
1 parent 17b595b commit c79c5a6

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@
5656
"test": "vitest --project eslint-rules --project unit-and-integration --coverage",
5757
"pretest:accuracy": "npm run build",
5858
"test:accuracy": "sh ./scripts/accuracy/runAccuracyTests.sh",
59+
"test:atlas": "vitest --project atlas-long-running --coverage",
5960
"atlas:cleanup": "vitest --project atlas-cleanup"
6061
},
6162
"license": "Apache-2.0",

vitest.config.ts

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ const vitestDefaultExcludes = [
1010
"**/{karma,rollup,webpack,vite,vitest,jest,ava,babel,nyc,cypress,tsup,build,eslint,prettier}.config.*",
1111
];
1212

13+
const longRunningTests = [
14+
"tests/integration/tools/atlas/performanceAdvisor.test.ts",
15+
];
16+
1317
if (process.env.SKIP_ATLAS_TESTS === "true") {
1418
vitestDefaultExcludes.push("**/atlas/**");
1519
}
@@ -18,6 +22,7 @@ if (process.env.SKIP_ATLAS_LOCAL_TESTS === "true") {
1822
vitestDefaultExcludes.push("**/atlas-local/**");
1923
}
2024

25+
2126
export default defineConfig({
2227
test: {
2328
environment: "node",
@@ -34,7 +39,7 @@ export default defineConfig({
3439
test: {
3540
name: "unit-and-integration",
3641
include: ["**/*.test.ts"],
37-
exclude: [...vitestDefaultExcludes, "scripts/**", "tests/accuracy/**"],
42+
exclude: [...vitestDefaultExcludes, "scripts/**", "tests/accuracy/**", ...longRunningTests],
3843
},
3944
},
4045
{
@@ -58,6 +63,15 @@ export default defineConfig({
5863
include: ["scripts/cleanupAtlasTestLeftovers.test.ts"],
5964
},
6065
},
66+
{
67+
extends: true,
68+
test: {
69+
name: "atlas-long-running",
70+
include: [...longRunningTests],
71+
testTimeout: 7200000, // 2 hours for long-running tests
72+
hookTimeout: 7200000,
73+
},
74+
},
6175
],
6276
},
6377
});

0 commit comments

Comments
 (0)