Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't set <avoidCallsTo> easily to empty #1351

Open
obfischer opened this issue Sep 16, 2024 · 1 comment
Open

Can't set <avoidCallsTo> easily to empty #1351

obfischer opened this issue Sep 16, 2024 · 1 comment

Comments

@obfischer
Copy link
Contributor

As logging is very important to our application, I would like to override avoidCallsTo and set it to empty.

So I tried to configure the plugin as follows:

<configuration>
    <avoidCallsTo/>
</configuration>

Unfortunately is was without any effect. The only effective way to 'empty' it was to fill it with a non-existing package like this:

<configuration>
    <avoidCallsTo>
        <avoidCallsTo>These.Element.Must.Be.Present</avoidCallsTo>
    </avoidCallsTo>
</configuration>

It would be nice, if the first variant shown also would work.

P.S.: Thank you for bringing PIT to us.
P.P.S.: I am using PIT 1.16.3

@thePolitician
Copy link

@obfischer
If you want to execute mutations for logging frameworks then you can just set the feature FLOGCALL to disabled check here.

<features>
   <feature>-flogcall</feature>
</features>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants