diff --git a/.github/workflows/harness-ci.yml b/.github/workflows/harness-ci.yml index 762852f..a425d89 100644 --- a/.github/workflows/harness-ci.yml +++ b/.github/workflows/harness-ci.yml @@ -9,6 +9,11 @@ on: type: boolean default: true required: false + testDir: + description: 'Run a specific test directory (path relative to test root)' + type: string + default: 'suite/' + required: false permissions: contents: read @@ -42,13 +47,13 @@ jobs: if: ${{ inputs.coverage == false }} env: CI: true - run: npm run test + run: npm run test ${ inputs.testDir } - name: Run tests with coverage if: ${{ inputs.coverage == true }} env: CI: true - run: npm run test:coverage + run: npm run test:coverage ${ inputs.testDir } - name: Upload coverage artifact if: ${{ inputs.coverage && always() }} diff --git a/test/suite/syncp2p.test.ts b/test/suitep2p/syncp2p.test.ts similarity index 91% rename from test/suite/syncp2p.test.ts rename to test/suitep2p/syncp2p.test.ts index 7f08cf4..08c2c10 100644 --- a/test/suite/syncp2p.test.ts +++ b/test/suitep2p/syncp2p.test.ts @@ -9,9 +9,9 @@ import { type ObsidianLiveSyncSettings, } from "@/lib/src/common/types"; -import { settingBase } from "./variables.ts"; -import { defaultFileOption } from "./db_common"; -import { syncBasicCase } from "./sync.senario.basic.ts"; +import { settingBase } from "../suite/variables.ts"; +import { defaultFileOption } from "../suite/db_common"; +import { syncBasicCase } from "../suite/sync.senario.basic.ts"; export const env = (import.meta as any).env; function* generateCase() {