我正在尝试使用 Stryker JS,以便我们可以在 Angular 应用程序中测试突变,作为构建/部署过程的一部分。
我们使用的所有存储库都使用 SVN 进行版本控制。不幸的是,Stryker 是git ls-files
用来启动沙箱进行测试的,因此运行stryker run
会导致以下错误:
08:59:46 (5392) ERROR Stryker { Error: Cannot determine input files. Either specify a `files` array in your stryker configuration, or make sure "PATH/TO/PROJECT" is located inside a git repository. I
nner error: Error: Command failed: git ls-files --others --exclude-standard --cached --exclude /.stryker-tmp/*
fatal: not a git repository (or any of the parent directories): .git
Error: Command failed: git ls-files --others --exclude-standard --cached --exclude /.stryker-tmp/*
fatal: not a git repository (or any of the parent directories): .git
at ChildProcess.exithandler (child_process.js:294:12)
at ChildProcess.emit (events.js:198:13)
at maybeClose (internal/child_process.js:982:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
at InputFileResolver.resolveFilesUsingGit (C:\Users\PATH\TO\PROJECT\node_modules\@stryker-mutator\core\src\input\InputFileResolver.js:121:19)
at process._tickCallback (internal/process/next_tick.js:68:7)
innerError:
{ Error: Command failed: git ls-files --others --exclude-standard --cached --exclude /.stryker-tmp/*
fatal: not a git repository (or any of the parent directories): .git
at ChildProcess.exithandler (child_process.js:294:12)
at ChildProcess.emit (events.js:198:13)
at maybeClose (internal/child_process.js:982:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
killed: false,
code: 128,
signal: null,
cmd:
'git ls-files --others --exclude-standard --cached --exclude /.stryker-tmp/*',
stdout: '',
stderr:
'fatal: not a git repository (or any of the parent directories): .git\n' } }
08:59:46 (5392) INFO Stryker Trouble figuring out what went wrong? Try `npx stryker run --fileLogLevel trace --logLevel debug` to get some more info.
有没有人找到在基于 SVN 的存储库中成功运行 Stryker 的解决方法?