On 2018-10-02 07:01, tdiffenbach via PIT Users wrote:
> I'm using the gradle plugin to run PIT in a gradle project with subprojects.
>
> I've added junit 4.11 ("junit:junit:4.11") to both `testCompile` and
> `compile` within a subproject's `dependencies` in the subproject
> build.gradle.
testCompile is fine.
> To the top-level build.gradle, I've added:
>
> pitest {
> targetClasses = ['one.class.in.the.Subproject']
> outputFormats = ['XML', 'HTML']
> timestampedReports = true
> }
It's ok.
> But I've getting this when I run
> ../gradlew pitest
> from the subproject directory:
Should be fine. Can you:
- run "./gradlew pitest" from the root directory
- run the pitest task with "--info" and paste a part where the command
line options passed to PIT are displayed.
Marcin
>
> 7:49:47 PM PIT >> INFO : Sending 0 test classes to minion
> 7:49:47 PM PIT >> INFO : Sent tests to minion
> 7:49:47 PM PIT >> INFO : MINION : 7:49:47 PM PIT >> INFO : Checking
> environment
>
> 7:49:47 PM PIT >> INFO : MINION : 7:49:47 PM PIT >> SEVERE : JUnit was not
> found on the classpath. PIT requires JUnit 4.6 or above.
> See
http://pitest.org for more details.
>
> 7:49:47 PM PIT >> SEVERE : Error generating coverage. Please check that
> your classpath contains JUnit 4.6 or above.
> Exception in thread "main" org.pitest.util.PitError: Coverage generation
> minion exited abnormally. Please check the classpath.
>
> Any idea what I'm doing wrong?
>
> Thanks,
> Tom
>
--
https://blog.solidsoft.info/ - Working code is not enough