What programming languages can support mutation testing?
Asked Answered
J

3

5

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?

Justification answered 7/6, 2010 at 14:0 Comment(0)
B
2

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.

Breastbeating answered 7/6, 2010 at 14:12 Comment(0)
C
3

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

Cerberus answered 22/2, 2014 at 18:35 Comment(0)
B
2

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.

Breastbeating answered 7/6, 2010 at 14:12 Comment(0)
G
2

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.

Glass answered 23/4, 2012 at 21:27 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.