mirror of
https://github.com/vrtmrz/obsidian-livesync.git
synced 2026-01-14 01:09:17 +00:00
Split the tests
This commit is contained in:
9
.github/workflows/harness-ci.yml
vendored
9
.github/workflows/harness-ci.yml
vendored
@@ -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() }}
|
||||
|
||||
@@ -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() {
|
||||
Reference in New Issue
Block a user