javascript - 将 Stryker JS 与 SVN 存储库一起使用
问题描述
我正在尝试使用 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 的解决方法?
解决方案
推荐阅读
- html - Flip Card Hover 在 safari 中的 css html 中不起作用(特别是在手机上)
- python - QTextDocument 获取页面内容
- kubernetes - Rabbitmq pod 在工作节点重启后生效
- python - 在列表中使用排序功能时出现错误
- laravel-7 - 必需参数 $dompdf 遵循可选参数 $paper - barryvdh/laravel-dompdf
- amazon-web-services - 如何将 Lambda 响应数据引用到 CloudFormation 中的输出
- quarkus - 随机“未使用活动事务的已登记连接”错误
- typescript - 使用 Typescript 操作 DOM
- bash - 无法从函数中运行 find 命令
- selenium-webdriver - 我们无法使用 Selenium webdriver 自动化 Power BI 应用程序。从嵌入在 iframe 中的过滤器中选择下拉值时出现问题