GithubHelp home page GithubHelp logo

Comments (11)

hcoles avatar hcoles commented on June 18, 2024 1

If you share a minimum project that reproduces the issues I can take a look and see what is going on.

from pitest.

hcoles avatar hcoles commented on June 18, 2024 1

Fixed in 1.15.7.

Thanks again for reporting.

from pitest.

hcoles avatar hcoles commented on June 18, 2024

If you are using gradle, you must explicitly set the target classes parameter (this is automatically populated for maven). Pitest will only mutate classes that match this glob.

from pitest.

kulasangeles avatar kulasangeles commented on June 18, 2024

Hi @hcoles thanks for responding promptly. I am using target class and what's weird is that there are certain combinations that seems to not detect classes and tests. I did a few tests. for com.sun.* - it does not detect the tests and classes but for ca.sun.* it was detected. Not sure what's wrong with the com.sun package name that makes PITest not detect the tests and classes.
Here are a few screenshots.

image image image

from pitest.

hcoles avatar hcoles commented on June 18, 2024

'com.sun' is a package used in legacy parts of the JDK (from Java's roots at sun microsystems). Pitest will not mutate it as it could cause all sorts of problems.

from pitest.

kulasangeles avatar kulasangeles commented on June 18, 2024

I see. Thank you. One last question before I close the issue. What if there are packages that starts with com.sundance for example - do we have a way to still run pitest on them?

from pitest.

hcoles avatar hcoles commented on June 18, 2024

If your target is set to com.sundance.* that should work without issue.

from pitest.

kulasangeles avatar kulasangeles commented on June 18, 2024

If your target is set to com.sundance.* that should work without issue.

image
It does not as per my tests

from pitest.

kulasangeles avatar kulasangeles commented on June 18, 2024

test-learner.zip
Here's a very small gradle project I am working on. Thank you!

from pitest.

hcoles avatar hcoles commented on June 18, 2024

Thanks for the project, this is indeed a (very old) and stupid bug in pitest.

The bit of the code that stops pitest from instrumenting jdk classes is missing a '.', so it is filtering "com.sun*" rather than "com.sun.*".

Should be fixed shortly.

from pitest.

kulasangeles avatar kulasangeles commented on June 18, 2024

Thank you for fixing @hcoles!

from pitest.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.