Hello guys. I’m writing a tool for dynamic test generation for JavaScript. You can see a video here. The tool uses the symbolic execution tecnique to get the path constraint of a function and then it uses an SMT-solver to solve it.
Suppose that you want to test this function:
function f_1 (a) {
switch (a) {
case 1:
break;
case 2:
break;
case 3:
break;
default:
}
return 12;
}
```
this is the result:
{ errors: [],
testCases: [ { a: 10 }, { a: 1 }, { a: 2 }, { a: 3 } ],
results:
[ { type: 'number', value: 12, description: '12' },
{ type: 'number', value: 12, description: '12' },
{ type: 'number', value: 12, description: '12' },
{ type: 'number', value: 12, description: '12' } ] }
I resume the example in this image:
[img]http://s22.postimg.org/tybzobekf/Screen_Shot_2016_01_18_at_18_09_38.png[/img]
I really appreciate any suggestions to improve it. The source code is not avaiable yet since there is not a stable version.