-
Notifications
You must be signed in to change notification settings - Fork 354
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
Increment Analysis Issue #763
Comments
I could reproduce this issue with a minimal example project using maven and testng. The problem is the combination of different granularity of the coverage calculation which triggers on a "by test class" basis, but reports covered tests "by test method" (for history calculation) on the one hand and the history check which in turn acts on a "by test class" basis. Those different definitions of a TestUnit seem to collide for testng. I'll try to provide a fix for this. |
fixes hcoles#763 Incremental analysis honors all killing tests now instead of limiting the scope of analysis to the first killing test. This is often identical if there is no matrix mutation in place but TestNG plugin calculates test units in terms of test classes thus executes all test methods of a test class and records historic data with method level granularity and class level granularity. We need to take all killing tests into account to match history data and executable test units in the analyzer. This will also help if different test classes cover a certain production class and one of those test classes is deleted or renamed. Improved logging to help spotting analyzer misbehaviour.
…ric data (fixes #763) (#765) * made incremental analysis more tolerant of coverage changes fixes #763 Incremental analysis honors all killing tests now instead of limiting the scope of analysis to the first killing test. This is often identical if there is no matrix mutation in place but TestNG plugin calculates test units in terms of test classes thus executes all test methods of a test class and records historic data with method level granularity and class level granularity. We need to take all killing tests into account to match history data and executable test units in the analyzer. This will also help if different test classes cover a certain production class and one of those test classes is deleted or renamed. Improved logging to help spotting analyzer misbehaviour. * remove log catcher after tests Changing the configuration of the Logger is a global setting per JVM. When running tests with surefire the JVM will be reused among tests. Permanently changing the logging configuration might interfere with other tests.
Hello,
Thank you for your response and fixing the issue ASAP.
I tried to test it by check out the code but I am unable to do set up as I
am working on company's environment. It is throwing error " unable to find
artifact org.pitest:pitest:pitest:jar1.5.2-SNAPSHOT in nexus". Really
helpful if you could you share that plugin which have the fix or when
would be the next release date, so that I can use it
Thanks in advance
Regards,
Yuvaraja
…On Sun, May 10, 2020, 7:48 PM Henry Coles ***@***.***> wrote:
Closed #763 <#763> via #765
<#765>.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#763 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKEQRAY6TL6SOP2AUMGMB63RQ2ZUHANCNFSM4MZSRPFQ>
.
|
Hi Yuvaraja, did you build the project using EDIT: Version 1.5.2 with this issue fixed has already been released. Just drop the -SNAPSHOT suffix and maven should download the latest version from central. |
Increment analysis is not working correctly.
It is creating history file but not referring for next run.. When I am running same set of files without any modifications, It is taking same time. No performance improvement.
could you help me on this?
The text was updated successfully, but these errors were encountered: