PIT build error in Android studio

54 views
Skip to first unread message

Anbunathan Ramaiah

unread,
Jun 24, 2017, 10:19:12 PM6/24/17
to PIT Users
I downloaded PIT plugin from https://github.com/szpak/gradle-pitest-plugin
I tried to build using Android Studio.
I am getting compilation error: Please solve.

Information:6/25/2017 7:30 AM - Compilation completed with 15 errors and 0 warnings in 9s 899ms
D:\Apps\gradle-pitest-plugin-master\src\funcTest\groovy\info\solidsoft\gradle\pitest\functional\AbstractPitestFunctionalSpec.groovy
Error:(3, 1) Groovyc: unable to resolve class nebula.test.IntegrationSpec
Error:(5, 1) Groovyc: unable to resolve class nebula.test.IntegrationSpec
D:\Apps\gradle-pitest-plugin-master\src\funcTest\groovy\info\solidsoft\gradle\pitest\functional\PitestPluginFunctional1Spec.groovy
Error:(4, 1) Groovyc: unable to resolve class nebula.test.functional.ExecutionResult
D:\Apps\gradle-pitest-plugin-master\src\funcTest\groovy\info\solidsoft\gradle\pitest\functional\PitestPluginFunctional2Spec.groovy
Error:(6, 1) Groovyc: unable to resolve class nebula.test.functional.GradleRunner
Error:(7, 1) Groovyc: unable to resolve class spock.lang.Unroll
Error:(19, 5) Groovyc: unable to resolve class spock.lang.Unroll ,  unable to find class for annotation
D:\Apps\gradle-pitest-plugin-master\src\test\groovy\info\solidsoft\gradle\pitest\PitestPluginClasspathFilteringSpec.groovy
Error:(22, 5) Groovyc: unable to resolve class PitestTask
D:\Apps\gradle-pitest-plugin-master\src\test\groovy\info\solidsoft\gradle\pitest\WithPitestTaskInitialization.groovy
Error:(9, 5) Groovyc: unable to resolve class PitestTask
D:\Apps\gradle-pitest-plugin-master\src\test\groovy\info\solidsoft\gradle\pitest\PitestPluginTargetClassesTest.groovy
Error:(74, 20) Groovyc: unable to resolve class PitestTask
Error:(74, 33) Groovyc: unable to resolve class PitestTask
D:\Apps\gradle-pitest-plugin-master\src\test\groovy\info\solidsoft\gradle\pitest\BasicProjectBuilderSpec.groovy
Error:(26, 1) Groovyc: unable to resolve class info.solidsoft.gradle.pitest.PitestPlugin
Error:(38, 5) Groovyc: unable to resolve class PitestPluginExtension
Error:(53, 5) Groovyc: unable to resolve class PitestTask
Error:(56, 36) Groovyc: unable to resolve class PitestTask
Error:(57, 16) Groovyc: unable to resolve class PitestTask

Project settings
Refer Project settings.png
Project settings.PNG

Henry Coles

unread,
Jun 25, 2017, 8:02:03 AM6/25/17
to pitu...@googlegroups.com
What happens if you build from a terminal using the build script?

--
You received this message because you are subscribed to the Google Groups "PIT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pitusers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Anbunathan Ramaiah

unread,
Jun 25, 2017, 11:41:48 AM6/25/17
to pitu...@googlegroups.com
Through command line tried.
It is building properly.

--
You received this message because you are subscribed to a topic in the Google Groups "PIT Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/pitusers/6JPbUYnN6Eo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to pitusers+unsubscribe@googlegroups.com.

Henry Coles

unread,
Jun 25, 2017, 12:04:06 PM6/25/17
to pitu...@googlegroups.com
It sounds like you have a problem with your IDE or its configuration that is not related to pitest. You might be able to find help in an intelij forum.

Henry

Anbunathan Ramaiah

unread,
Jun 25, 2017, 2:32:29 PM6/25/17
to pitu...@googlegroups.com
I need example Android application, where Pitest is used for mutation testing.
please send the link.

henry

unread,
Jun 26, 2017, 11:36:28 AM6/26/17
to PIT Users
There is an (old) example of using pitest with an android project  here ->

https://github.com/hcoles/pitest-roboeletric-sample

The sample is built with maven. I understand there are some issues using the gradle plugin on android projects, but there is a fork of the gradle plugin that may work

https://github.com/koral--/gradle-pitest-plugin

Henry



On Sunday, 25 June 2017 19:32:29 UTC+1, Anbunathan Ramaiah wrote:
I need example Android application, where Pitest is used for mutation testing.
please send the link.
On Sun, Jun 25, 2017 at 9:34 PM, 'Henry Coles' via PIT Users <pitu...@googlegroups.com> wrote:
It sounds like you have a problem with your IDE or its configuration that is not related to pitest. You might be able to find help in an intelij forum.

Henry

Marcin Zajączkowski

unread,
Jun 26, 2017, 11:44:23 AM6/26/17
to pitusers

Dnia Poniedziałek, 26 Czerwca 2017 17:36 'henry' via PIT Users <pitu...@googlegroups.com> napisał(a)

There is an (old) example of using pitest with an android project  here ->

https://github.com/hcoles/pitest-roboeletric-sample

The sample is built with maven. I understand there are some issues using the gradle plugin on android projects, but there is a fork of the gradle plugin that may work

https://github.com/koral--/gradle-pitest-plugin
 
I missed that thread earlier. The koral's version should work fine with Android (due to some incompatibilities with "standard" Java project it is easier to keep two variants of the Gradle plugin). As "Groovyc: unable to resolve class nebula.test.IntegrationSpec" is related to Gradle I propose to report that problem directly there: https://github.com/koral--/gradle-pitest-plugin/issues (I don't know if Koral is subscribed to this list).
 
Marcin
The author of Gradle plugin for PIT
 
 
To unsubscribe from this group and stop receiving emails from it, send an email to pitusers+u...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "PIT Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/pitusers/6JPbUYnN6Eo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to pitusers+u...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

 

--
You received this message because you are subscribed to the Google Groups "PIT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pitusers+u...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

 

--
You received this message because you are subscribed to a topic in the Google Groups "PIT Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/pitusers/6JPbUYnN6Eo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to pitusers+u...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

 

--
You received this message because you are subscribed to the Google Groups "PIT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pitusers+u...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--

http://blog.solidsoft.info/ - Working code is not enough

 


Reply all
Reply to author
Forward
0 new messages