import path from 'node:path' import { fileURLToPath } from 'node:url' import { resolvePythonExecutable, runPythonCommand } from './python-runtime.mjs' const scriptDirectory = path.dirname(fileURLToPath(import.meta.url)) const pipelineDirectory = path.resolve(scriptDirectory, '..') const python = resolvePythonExecutable({ pipelineDirectory }) runPythonCommand({ executable: python, args: ['-m', 'unittest', 'discover', '-s', 'tests', '-p', 'test_*.py'], cwd: pipelineDirectory, })