munit

バージョン 1.0.1.0 (7.42 KB) 作成者: David Legland
Unit tests with MATLAB.
ダウンロード: 1.4K
更新 2016/6/8

ライセンスの表示

This is an attempt to build a convenient unit test procedures for MATLAB files, following ideas of JUnit for Java, or CUnit.
Idea is create one test for each user function. This test calls user function, and assert some results. If the result does not correspond to the expected one, an 'assertion' is thrown.

At the end of the test, all wrong assertions are shown, and number of passed and failed tests is shown.

Then, if tests are correctly written, lanching the tests after modifications of user programs allows to check no bugs are added.

A (very) simple example is given in directory munit/demo.

引用

David Legland (2024). munit (https://www.mathworks.com/matlabcentral/fileexchange/7845-munit), MATLAB Central File Exchange. 取得済み .

MATLAB リリースの互換性
作成: R14
すべてのリリースと互換性あり
プラットフォームの互換性
Windows macOS Linux
カテゴリ
Help Center および MATLAB AnswersTesting Frameworks についてさらに検索
謝辞

ヒントを与えたファイル: MUnit: a unit testing framework in Matlab

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
バージョン 公開済み リリース ノート
1.0.1.0

update license

1.0.0.0