TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Java Mutation Testing

88 pointsby onderkalaciabout 10 years ago

8 comments

cfontesabout 10 years ago
I can&#x27;t believe I&#x27;ve never heard of this. It looks really useful.<p>Thanks for sharing. I will play with it today!<p>Relevant plugin for IntelliJ: <a href="https:&#x2F;&#x2F;plugins.jetbrains.com&#x2F;plugin&#x2F;7119?pr=idea" rel="nofollow">https:&#x2F;&#x2F;plugins.jetbrains.com&#x2F;plugin&#x2F;7119?pr=idea</a>
评论 #9501316 未加载
kremlinabout 10 years ago
That&#x27;s an interesting concept - testing the tests themselves.
评论 #9501887 未加载
TheLoneWolflingabout 10 years ago
A problem with this is that sometimes nondeterminism is OK.<p>For instance, changing the constant to another prime in the &quot;classic&quot; hashcode implementation (repeatedly multiply by a prime and add the next field) will (probably) not trigger any (well-written) tests, and indeed generally won&#x27;t be detrimental at all, but will be flagged by this sort of test.
评论 #9510591 未加载
评论 #9508181 未加载
johnflanabout 10 years ago
I have used Pitest at work, it is very good and on more than one occasion it unearthed wanting tests.<p>Unfortunately, we had to remove it from our build. Our CI pipeline uses VM&#x27;s that were not provisioned with this type of testing in mind and pitest ended up slowing the build enough to make it painful. If we could get past this, I would turn it on in the morning.
评论 #9502333 未加载
评论 #9502035 未加载
JD557about 10 years ago
There seems to be a sbt plugin by the original creator that has not been updated since last year: <a href="https:&#x2F;&#x2F;github.com&#x2F;hcoles&#x2F;sbt-pit" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;hcoles&#x2F;sbt-pit</a><p>Does anyone know if the current version of pit already works well with scala?
dlhavemaabout 10 years ago
so if i read this correctly &quot;This filter will not work for tests that utilise classes via interfaces, reflection or other methods where the dependencies between classes cannot be determined from the byte code.&quot;<p>if you are using interfaces to inject and mock things, it cannot test your code?<p>this sounds really cool, but most of the stuff we do is down with interfaces...
评论 #9507629 未加载
评论 #9503274 未加载
c4n4rdabout 10 years ago
if you are the site owner, please correct:<p>Its fast, ...<p>with<p>It&#x27;s fast,...
oliverc2about 10 years ago
There are also other great mutation testing tools for other languages, such as Mutator: <a href="http:&#x2F;&#x2F;ortask.com&#x2F;mutator&#x2F;" rel="nofollow">http:&#x2F;&#x2F;ortask.com&#x2F;mutator&#x2F;</a>