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
project/
├── module-with-java-code/
│ ├── main
│ ├── test
│ └── build.gradle
├── module-with-cucumber-features/
│ ├── features [test]/
│ │ ├── feature-test-folder-1/
│ │ │ ├── test-1.feature
│ │ │ └── -...
│ │ └── ...
│ ├── test/
│ │ ├── glue/
│ │ │ └── glues...
│ │ ├── TestNgCucumberTest for feature-test-folder-1
│ │ └── ...
│ └── build.gradle
├── way more more modules...
└── build.gradle
I want to execute Pitest on code in module-with-java-code but i want to run it with tests inside its own module and the feature tests from module-with-cucumber-features.
The versions i am using:
gradle: 8.11.1
pitest-gradle-plugin: 'info.solidsoft.pitest' version '1.15.0'
What i was expecting was that it would recognize the cucumber tests (e.g. TestNgCucumberTest) and for each mutation execute the cucumber tests and the unit tests.
However i am running into some problems with the configuration:
I tried to configure it in the module-with-cucumber-features
Here it give an error: No mutations found
I tried to configure it in the root project
Here it give an error: "Could not get unknown property 'implementation' for configuration container for project ':module-with-java-code' of type org.gradle.api.internal.artifacts.configurations.DefaultConfigurationContainer"
I tried to configure it in the root project
Here it give an error: "Could not get unknown property 'implementation' for configuration container for project ':module-with-java-code' of type org.gradle.api.internal.artifacts.configurations.DefaultConfigurationContainer"
The root project doesn't seem to be Java project, so implementation configuration might not be available.
The caveat might be that due to the CD infrastructure legacy, the project itself is built only with Gradle 6.9. There might the some incompatible changes in Gradle 7 or 8. In addition, there might be a problem with the cucumber configuration and it might be hard to find it.
I propose you to first try to have executing - regular - JUnit tests executed from the other module with Gradle 8. If successful, then I would recommend adding there cucumber.
I have this approximate project structure:
I want to execute Pitest on code in module-with-java-code but i want to run it with tests inside its own module and the feature tests from module-with-cucumber-features.
The versions i am using:
I have tried to follow the documentation on gradle-pitest-plugin together with the multi-module example
What i was expecting was that it would recognize the cucumber tests (e.g. TestNgCucumberTest) and for each mutation execute the cucumber tests and the unit tests.
However i am running into some problems with the configuration:
I tried to configure it in the module-with-cucumber-features
Here it give an error: No mutations found
I tried to configure it in the root project
Here it give an error: "Could not get unknown property 'implementation' for configuration container for project ':module-with-java-code' of type org.gradle.api.internal.artifacts.configurations.DefaultConfigurationContainer"
The text was updated successfully, but these errors were encountered: