Vous suivez désormais cette soumission
- Les mises à jour seront visibles dans votre flux de contenu suivi
- Selon vos préférences en matière de communication il est possible que vous receviez des e-mails
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.
Citation pour cette source
David Legland (2026). munit (https://fr.mathworks.com/matlabcentral/fileexchange/7845-munit), MATLAB Central File Exchange. Extrait(e) le .
Remerciements
A inspiré : MUnit: a unit testing framework in Matlab
Informations générales
- Version 1.0.1.0 (7,42 ko)
Compatibilité avec les versions de MATLAB
- Compatible avec toutes les versions
Plateformes compatibles
- Windows
- macOS
- Linux
| Version | Publié le | Notes de version | Action |
|---|---|---|---|
| 1.0.1.0 | update license |
||
| 1.0.0.0 |
