哪些编程语言可以支持突变测试?
在某些语言中实施突变测试是否比其他语言更难(或不可能)?例如,是否可以用函数式编程语言实现突变测试?
Is it harder (or impossible) to implement mutation testing in some languages than others? For example, is it possible to implement mutation testing in functional programming languages?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
俄勒冈州最近似乎有一些关于 Haskell 突变测试框架的研究,称为 MuCheck:
http://web.engr.oregonstate.edu/~alipour/pub/mucheck .pdf
http://web.engr.oregonstate.edu/~alipour/pub/fp_mutation .pdf
代码可在 https://bitbucket.org/osu-testing/ 获取mucheck.git
There seems to be some recent research from Oregon State on a mutation testing framework for Haskell called MuCheck:
http://web.engr.oregonstate.edu/~alipour/pub/mucheck.pdf
http://web.engr.oregonstate.edu/~alipour/pub/fp_mutation.pdf
The code is available at https://bitbucket.org/osu-testing/mucheck.git
我不明白为什么这在任何语言中都是不可能的。
我当然不是专家,但我认为在函数式语言中进行突变测试会更容易。可以通过在函数式语言中重新定义运算符来完成突变,就像在其他语言中定义函数一样简单。
I don't see any reason why it would be impossible in any language.
I'm certainly no expert, but I would think that mutation testing would be easier in functional languages. Mutations can be done by redefining operators in functional languages as easily as functions are defined in other languages.
.NET 中没有特定的语言支持。然而,有些框架使用 .NET 的功能来实现突变测试。一个这样的框架,它的早期开发是
NinjaTurtles
我知道那些正在研究这个的人,所以认为这是一个无耻的行为插件,但该团队包括一些非常活跃且有成就的堆栈溢出贡献者。他们都是无耻的极客和 c#/.net 专家,因此您应该对项目的质量充满信心。
正如我所提到的,它还处于开发的最初几周,非常值得一看。如果您有功能请求,现在是时候提出了。
There is no specific language support in .NET. However there are frameworks that use features of .NET to acheive mutation testing. One such framework, its early days of development is
NinjaTurtles
I know the guys working on this, so consider this a shameless plug, but the team includes some very active and accomplished stack overflow contributors. They are all unashamed geeks and c#/.net experts, so you should have confidence in the quality of the project.
As I mentioned, it is in the very first few weeks of development, and it is well worth watching. If you have a feature request, now is the time to mention it.