dspot
dspot copied to clipboard
Don't generate *dspot_*.xml files in the source root
Dspot generates 2 files when I test it in my modules:
- .dspot_junit5_pom.xml
- .dspot_pom.xml
They are generated at the root of the project! Which is quite bad and pollutes the sources.
It would be great if these files could be generated under target/dspot. More generally anything that DSpot generates should go there IMO.
Thanks!
Will take more time than I thought:
By default, it looks for a maven project at the same place than the pom.xml
.
If we do generate the pom files into target/dspot/
, it will look for a project in this directory, e.g. target/dspot/src/main/java/
and target/dspot/src/test/java/
.
Two ways to handle this:
- delete the generated pom files at the end of the process, but the files might remains in case of crash or user interruption.
- when generating the pom files, specify new sources, test sources, resources trees in order to find them, with tags as
<sourceDirectory>
in the build.
#898 is the first attempt. However, it seems like this is complicated to handle all the cases (even the current tests in DSpot are complicated)
I'll go for the first option, that is easier for now.