mirror of
https://github.com/l0ng-ai/openidea.git
synced 2026-11-06 08:07:49 +00:00
* test(run): smoke-test running and testing each language's fixture smoke/run.test.ts drives the frontend's run store against a real openidea-server for TypeScript, Python, Rust, Go, Java and Kotlin: the detected configurations, a run to its output, the tests with the fixture's failing test switched on (counts, failure name, location and message in the test tree), and Rerun Failed Tests running only that test. `pnpm smoke` runs it; the Language smoke workflow runs it per language after the code intelligence smoke. * ci(language-smoke): let main's runs finish Merges to main came faster than a run, so each one cancelled the run before it: main never finished the smoke nor saved the build cache PRs restore. Only a PR's runs are superseded now.
21 lines
684 B
TypeScript
21 lines
684 B
TypeScript
/**
|
|
* Backend smoke tests (`pnpm smoke`): the frontend's own modules driving a real
|
|
* `openidea-server` and real toolchains. Not part of `pnpm test`: they need the server
|
|
* built (`cargo build -p ide-host --bin openidea-server`) and each language's tools.
|
|
*/
|
|
import { defineConfig, mergeConfig } from "vitest/config";
|
|
import viteConfig from "../vite.config.ts";
|
|
|
|
export default mergeConfig(
|
|
viteConfig({ command: "serve", mode: "test" }),
|
|
defineConfig({
|
|
test: {
|
|
include: ["smoke/**/*.test.ts"],
|
|
testTimeout: 10 * 60_000,
|
|
hookTimeout: 5 * 60_000,
|
|
// Each file starts a server and toolchains of its own.
|
|
fileParallelism: false,
|
|
},
|
|
}),
|
|
);
|