EvoSuite-用于获得最大代码覆盖率的参数 [英] EvoSuite - Parameters For Getting Most Code Coverage

查看:556
本文介绍了EvoSuite-用于获得最大代码覆盖率的参数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用EvoSuite生成单元测试,并且希望从所得到的单元测试中获得尽可能接近100%的代码覆盖率.要完成此操作,最好的命令行选项/参数是什么?

I'm generating unit tests with EvoSuite and would like to get as close to 100% code coverage from the resulting unit tests as possible. What are the best command line options/parameters to set to accomplish this?

推荐答案

EvoSuite的参数已经调整.如果您想进一步提高覆盖率,则需要增加分配给测试生成的时间(例如,通过使用-Dsearch_budget参数),尽管这不能保证100%的覆盖率.有关更多信息,请参见 http://www.evosuite.org/documentation/commandline/

EvoSuite comes with its parameters already tuned. if you want to improve coverage further, you d need to increase the allotted time for test generation (eg by using -Dsearch_budget parameter), although that cannot guarantee 100% coverage. For more info, see http://www.evosuite.org/documentation/commandline/

这篇关于EvoSuite-用于获得最大代码覆盖率的参数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆