Automatic validation of software

버전 (3.07 KB) 작성자: Toby Driscoll
Validate software using a test library of functions in a directory.

다운로드 수: 1.4K

업데이트 날짜: 2008/7/22

라이선스 보기

When developing a software package, it is useful to test changes by periodically running all the functions in a validation library. This function automates the process.

VALIDATE DIRNAME runs each M-file in the directory DIRNAME. Each M-file
should be a function that takes no inputs and returns a logical vector
or scalar. Three outcomes are possible:

'passed' All return values are true.
'failed' Some return value is false.
'crashed' Function threw an error.

A report is generated dynamically in the command window.

VALIDATE by itself tries to find a directory named 'validtests' in the
directory in which validate.m resides.

인용 양식

Toby Driscoll (2022). Automatic validation of software (, MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2007b
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!