You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I know that to run stryker on multi-module-projects, I need to use command sbt project projectName; stryker to run each module separately. However I have a repository with structure like this ...
common, multi1, multi2 are sub-modules project in which I can run stryker with command like sbt project common; stryker without any problem.
However, my goal is to run stryker on src directory. Please notice that it doesn't have parent directory like others, so to run stryker on it I use command like sbt stryker but Stryker always give me this error
sbt:sbt-multi-project-example> stryker
[info] Attempting to read config from stryker4s.conf
[info] Found 1 file(s) to be mutated.
[info] 2 Mutant(s) generated.()
[info] Setting up mutated environment...
[error] stack trace is suppressed; run last stryker for the full output
[error] (stryker) fs2.CompositeFailure: Multiple exceptions were thrown (2), first java.nio.file.FileAlreadyExistsException: /Users/tbenjaprompa/Documents/GitHub/sbt-multi-project-example/common/target/src/main/scala/Model.scala
[error] Total time: 2 s, completed Nov 17, 2021 7:30:56 PM
You can checkout my repository to try out here https://github.com/tanyagorn/sbt-multi-project-example
I know that the structure is kinda weird... but I have multiple project with structure like this and it give me a headache. Any suggestion or is it possible to run stryker on this?
Hi! Thanks for creating this issue. I think this is a bug in Stryker4s. I can reproduce the example repo. Removing base-dir: "." from the config fixes the exception thrown. The current working directory is already the default when running Stryker4s and leaving base-dir empty.
I'll look into why this is thrown. I'm not certain if it is related to your original issue on your project
Summary
I know that to run stryker on multi-module-projects, I need to use command sbt project projectName; stryker to run each module separately. However I have a repository with structure like this ...
common, multi1, multi2 are sub-modules project in which I can run stryker with command like sbt project common; stryker without any problem.
However, my goal is to run stryker on src directory. Please notice that it doesn't have parent directory like others, so to run stryker on it I use command like sbt stryker but Stryker always give me this error
You can checkout my repository to try out here https://github.com/tanyagorn/sbt-multi-project-example
I know that the structure is kinda weird... but I have multiple project with structure like this and it give me a headache. Any suggestion or is it possible to run stryker on this?
Stryker4s config
Stryker4s environment
Your Environment
The text was updated successfully, but these errors were encountered: