哪些编程语言可以支持突变测试?

发布于 2024-09-04 12:50:01 字数 57 浏览 2 评论 0原文

在某些语言中实施突变测试是否比其他语言更难(或不可能)?例如,是否可以用函数式编程语言实现突变测试?

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

陌上青苔 2024-09-11 12:50:01

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

孤独岁月 2024-09-11 12:50:01

我不明白为什么这在任何语言中都是不可能的。

我当然不是专家,但我认为在函数式语言中进行突变测试会更容易。可以通过在函数式语言中重新定义运算符来完成突变,就像在其他语言中定义函数一样简单。

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.

后eg是否自 2024-09-11 12:50:01

.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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文