gradle pitest plugin configuration with 0.29

197 views
Skip to first unread message

Panagiotis Tzerefos

unread,
Oct 5, 2012, 11:57:03 AM10/5/12
to pitu...@googlegroups.com
HI,

I followed the instruction (because I've never used this before) from the github site (https://github.com/szpak/gradle-pitest-plugin) and changed the required targetClasses parameter to my base package (though this might be the problem). 

but I get the following error when trying to run 'gradle pitest'

> Could not find method pitest() for arguments [build_2iilpv6h07t50j0hebevl89dim$_run_closure2_closure18@13980
44] on root project 'X'.

If anyone has an insight that would be awesome.

Thanks,
Pat

Marcin Zajączkowski

unread,
Oct 5, 2012, 5:12:43 PM10/5/12
to pitu...@googlegroups.com
Hi Panagiotis,

Thanks for your report!

I don't know why you've got that error message. Could you paste your
pitest related config from build.gradle? You could also run gradle with
--stacktrace option and put your results in some pastebin service.

Regards
Marcin

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

Marcin Zajączkowski

unread,
Oct 5, 2012, 5:14:12 PM10/5/12
to pitu...@googlegroups.com
Btw, I've just noticed 0.29 in a message subject. Does it work properly
with PIT 0.28?

Panagiotis Tzerefos

unread,
Oct 8, 2012, 9:09:04 AM10/8/12
to pitu...@googlegroups.com
I tried running with both 0.28 and 0.29. It looks like it's not pulling in the dependencies as it should cause I cannot find them locally,

Here are the segments of my build script that pertain to PIT

Repository

       add(new org.apache.ivy.plugins.resolver.URLResolver()) {
            name = 'GitHub'
        }

Added dependencies

        testCompile 'info.solidsoft.gradle.pitest:gradle-pitest-plugin:0.29.0'
        testCompile "org.pitest:pitest:0.29"

pitest method

    pitest {
        targetClasses = ['com.company.appname.*']
        pitestVersion = "0.29"
        outputFormats = ['XML', 'HTML']
    }

Thank you

Marcin Zajączkowski

unread,
Oct 15, 2012, 6:46:05 PM10/15/12
to pitu...@googlegroups.com
Hello Panagiotis, sorry for delay.

On 2012-10-08 15:09, Panagiotis Tzerefos wrote:
> I tried running with both 0.28 and 0.29. It looks like it's not pulling in
> the dependencies as it should cause I cannot find them locally,
>
> Here are the segments of my build script that pertain to PIT
>
> Repository
>
> add(new org.apache.ivy.plugins.resolver.URLResolver()) {
> name = 'GitHub'
> addArtifactPattern
> 'http://cloud.github.com/downloads/szpak/[module]/[module]-[revision].[ext]'
> }
>
> Added dependencies
>
> testCompile
> 'info.solidsoft.gradle.pitest:gradle-pitest-plugin:0.29.0'
> testCompile "org.pitest:pitest:0.29"

There is still no gradle-pitest-plugin 0.29 nor pitest 0.29 released, so
it could be a problem with missing dependencies. Nevertheless it should
work smoothly with 0.28.

Could you configure your project to use version 0.28 and run gradle with
--stacktrace parameter (and put your results in some pastebin service)?

Regards
Marcin

Marcin Zajączkowski

unread,
Oct 28, 2012, 3:00:13 PM10/28/12
to pitu...@googlegroups.com
On 2012-10-16 00:46, Marcin Zajączkowski wrote:
> Hello Panagiotis, sorry for delay.
>
> On 2012-10-08 15:09, Panagiotis Tzerefos wrote:
>> I tried running with both 0.28 and 0.29. It looks like it's not pulling in
>> the dependencies as it should cause I cannot find them locally,
>>
>> Here are the segments of my build script that pertain to PIT
>>
>> Repository
>>
>> add(new org.apache.ivy.plugins.resolver.URLResolver()) {
>> name = 'GitHub'
>> addArtifactPattern
>> 'http://cloud.github.com/downloads/szpak/[module]/[module]-[revision].[ext]'
>> }
>>
>> Added dependencies
>>
>> testCompile
>> 'info.solidsoft.gradle.pitest:gradle-pitest-plugin:0.29.0'
>> testCompile "org.pitest:pitest:0.29"
>
> There is still no gradle-pitest-plugin 0.29 nor pitest 0.29 released, so
> it could be a problem with missing dependencies. Nevertheless it should
> work smoothly with 0.28.
>
> Could you configure your project to use version 0.28 and run gradle with
> --stacktrace parameter (and put your results in some pastebin service)?

I've uploaded a snapshot for 0.29.0. Could you try your build with that
version?

https://github.com/szpak/gradle-pitest-plugin/downloads
Reply all
Reply to author
Forward
0 new messages