TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Java Mutation Testing

88 点作者 onderkalaci大约 10 年前

8 条评论

cfontes大约 10 年前
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 未加载
kremlin大约 10 年前
That&#x27;s an interesting concept - testing the tests themselves.
评论 #9501887 未加载
TheLoneWolfling大约 10 年前
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 未加载
johnflan大约 10 年前
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 未加载
JD557大约 10 年前
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?
dlhavema大约 10 年前
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 未加载
c4n4rd大约 10 年前
if you are the site owner, please correct:<p>Its fast, ...<p>with<p>It&#x27;s fast,...
oliverc2大约 10 年前
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>