MATLAB爱好者论坛-LabFans.com

MATLAB爱好者论坛-LabFans.com (https://www.labfans.com/bbs/index.php)
-   资料存档 (https://www.labfans.com/bbs/forumdisplay.php?f=72)
-   -   MATLAB的单元测试框架 (https://www.labfans.com/bbs/showthread.php?t=24035)

poster 2019-12-10 20:48

MATLAB的单元测试框架
 
现有的MATLAB单元测试框架是什么,它们如何比较?我应该如何为我们的项目选择一个?他们的优缺点是什么?



[B]回答:[/B]

我认为最受欢迎的MATLAB [URL="http://www.mathworks.com/matlabcentral/fileexchange/22846-matlab-xunit-test-framework"]框架[/URL]是File Exchange上提供的[URL="http://www.mathworks.com/matlabcentral/fileexchange/22846-matlab-xunit-test-framework"]xUnit Test Framework[/URL] 。非常灵活并且有据可查。

[URL="http://en.wikipedia.org/wiki/List_of_unit_testing_frameworks#MATLAB"]此处[/URL]和[URL="http://mlunit.dohmke.de/Unit_Testing_With_Matlab"]此处[/URL]列出[URL="http://en.wikipedia.org/wiki/List_of_unit_testing_frameworks#MATLAB"]了[/URL]其他一些单元测试工具。

另一个非常有趣的文件交换提交文件是[URL="http://www.mathworks.com/matlabcentral/fileexchange/28862-doctest-embed-testable-examples-in-your-functions-help-comments"]Doctest[/URL] 。但是,它并不完全是单元测试框架,它的工作方式类似于Python中的[I]doctest[/I] 。我还没有尝试过,但是对于嵌入功能帮助中的简单测试而言,它看起来很有希望。



[url=https://stackoverflow.com/questions/3992295]更多&回答...[/url]


所有时间均为北京时间。现在的时间是 20:32

Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.