0

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 を正常に実行するための回避策を見つけた人はいますか?

4

0 に答える 0