-
Notifications
You must be signed in to change notification settings - Fork 58
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
Support for identifying the base project directory #307
Comments
There's The key question is what will it be used for? Just in the context of aggregation? |
The initial use case is support for a |
I could use the rootProject directory, but allow users to override it - for the corner cases. I will also probably need a generic mechanism to decide which parameters which be passed to which PIT version (vide Btw, would that configuration affect the way how the Gradle plugin configures PIT? |
The idea of the .pitest directory is to provide config without having to update each of the build integrations. The initial thinking is to use it for things best expressed in a file, rather than for individual values. The immediate use case is licence files for the Arcmutate commercial extensions, but I'm also hoping to release a plugin in the next few weeks that allows sections of the code to be marked as "do not mutate" based on a simple expression language. I guess gradle's caching mechanism will need to be aware of files in there. |
(In the future) The configuration file could be treated as an input for Gradle configuration. However, as the Gradle configuration is more versatile (e.g. a dynamic Groovy/Kotlin expression execution), the Gradle plugin would rather generate the configuration file, based on its own configuration (and generic settings in Gradle - e.g. number and location of the subprojects). In that case, we could probably limit the number of parameters passed to PIT executable (similarly to |
Hi @szpak
I'm hoping to add some functionality to pitest that depends on being able to identify the base directory of a project. From some quick experiments, I don't believe its possible to do this from within pitest itself for a multi module gradle build (excpect by walking directories on the file system).
I'm therefore proposing adding a new parameter to be passed to pitest 1.7.5 onwards
hcoles/pitest#999
It should be set to the root directory of a project. I assume this is easy to identify from within the gradle plugin?
The text was updated successfully, but these errors were encountered: