mirror of
https://github.com/dogkeeper886/ollama37.git
synced 2025-12-18 11:47:07 +00:00
- Add .github/workflows/build-test.yml for automated testing - Add tests/ directory with TypeScript test runner - Add docs/CICD.md documentation - Remove .gitlab-ci.yml (migrated to GitHub Actions) - Update .gitignore for test artifacts 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
67 lines
1.1 KiB
TypeScript
67 lines
1.1 KiB
TypeScript
// Test case definition
|
|
export interface TestStep {
|
|
name: string
|
|
command: string
|
|
timeout?: number
|
|
}
|
|
|
|
export interface TestCase {
|
|
id: string
|
|
name: string
|
|
suite: string
|
|
priority: number
|
|
timeout: number
|
|
dependencies: string[]
|
|
steps: TestStep[]
|
|
criteria: string
|
|
}
|
|
|
|
// Execution results
|
|
export interface StepResult {
|
|
name: string
|
|
command: string
|
|
stdout: string
|
|
stderr: string
|
|
exitCode: number
|
|
duration: number
|
|
}
|
|
|
|
export interface TestResult {
|
|
testCase: TestCase
|
|
steps: StepResult[]
|
|
totalDuration: number
|
|
logs: string
|
|
}
|
|
|
|
// LLM judgment
|
|
export interface Judgment {
|
|
testId: string
|
|
pass: boolean
|
|
reason: string
|
|
}
|
|
|
|
// Final report
|
|
export interface TestReport {
|
|
testId: string
|
|
name: string
|
|
suite: string
|
|
pass: boolean
|
|
reason: string
|
|
duration: number
|
|
logs: string
|
|
}
|
|
|
|
// Runner options
|
|
export interface RunnerOptions {
|
|
suite?: string
|
|
id?: string
|
|
workers: number
|
|
dryRun: boolean
|
|
output: 'console' | 'json' | 'junit'
|
|
reportTestlink: boolean
|
|
ollamaUrl: string
|
|
ollamaModel: string
|
|
testlinkUrl: string
|
|
testlinkApiKey: string
|
|
}
|