Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Open source mutation testing c++ [closed]

I need an open source tool (even a relatively primitive one will do) which performs Mutation Testing on C++ code. I require it to be open source as I require to modify it in a proof of concept experiment.

I tried Googling it but did not come up with open source tools, I came up with this question, but the suggested tools in the answers are either not open source or do not mutate C++.

like image 324
cachiama Avatar asked Oct 08 '22 08:10

cachiama


1 Answers

I presume that by "C++ code" you mean something that mutates the source code itself rather than a compiled version? Source code mutation is far harder to implement than intermediate code mutation (e.g. Java bytecode or .NET IL). Because of this, I strongly suspect that you won't find an open source one.

The challenge is to parse the source code into some form of syntax tree, a hard problem in C++, which will then allow you to identify mutation points and make the source code changes you need. You might like to take a look at GCCXML as an open source starting point for parsing - adding the mutation is actually the more straightforward part of the problem.

The open source NinjaTurtles (disclaimer: I am lead developer on this) will mutate assemblies compiled from .NET managed C++ code, but I suspect that won't be any good to you?

like image 61
David M Avatar answered Oct 12 '22 12:10

David M