New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Configurable tmp folder location #336
Comments
Thank you @viamin for reporting this issue. The position of your .stryker-tmp folder is indeed not ideal. We actually used your system's temp folder earlier, but we ran into a problem: In other words: your systems temp folder will only work for browser-based test runners like karma. If we would add a configuration item for this it will be one more way users can make mistakes in configuring Stryker. It's already kind of hard to do. Would you still want this option? |
I was not referring to system /tmp, but the project root ./tmp, which would be in the same directory as node_modules. I'm proposing a project with these files: |
Ah i see what you mean. That should work indeed. Do you want to take a shot at implementing this? Would you only allow relative path locations? If we allow for the systems tmp folder for example, we should warn people about the node_modules. |
I think this one can be implemented after #361 or with it. |
Solution created in #475 |
We're closing this issue for now. If someone wants to fix this, let us know! |
* Rename TempFolder to TemporaryDirectory * Let typed-inject take care of the singleton implementation of the temp dir * Set a default tempDirName * docs(options): add temp dir to options
Currently Stryker creates a new dot folder in the current working directory which is not in a default temp location https://github.com/stryker-mutator/stryker/blob/8e0e6b016b513a5fbd1f24fc7a08499ef3151dba/packages/stryker/src/utils/StrykerTempFolder.ts#L9, which means every user of stryker needs to edit their .gitignore file.
It would be nice if this location could be configured in the stryker.conf.js file, and by default live in ./tmp/stryker instead of .stryker-tmp
The text was updated successfully, but these errors were encountered: