Which Unit Test tool is good for image processing code ?

조회 수: 2 (최근 30일)
Dharm Singh
Dharm Singh 2017년 5월 15일
댓글: Andy Campbell 2017년 5월 15일
Which Unit Test tool is good for image processing code ?

답변 (1개)

Jan
Jan 2017년 5월 15일
The answer does not depend on the field you are working in, so it does not matter if image processing is concerned. I'd rely on Matlab's builtin unit testing framework, see https://www.mathworks.com/help/matlab/script-based-unit-tests.html.
I create a unit test function manually for all of my functions to support older Matlab versions, which did not have unit test tools. This is less smart, but ways better then omitting an exhaustive unit testing.
Summary: Choosing the "wrong" tool is not the problem, but only to omit the testing or test not exhaustively.
  댓글 수: 1
Andy Campbell
Andy Campbell 2017년 5월 15일
Nice answer Jan. One strategy you might consider using is writing the unit tests that need to test older releases using the script-based testing style. When you do this, you can always jsut run the script in an older release to execute the needed code, but then in releases that have the test framework you can call runtests on it galore. You can run it in parallel, combine it with other function or class based tests and so on.
When you write the code as a script based test you don't get the benefit of the qualification api , but you don't have that functionality anyway in older pre-test framework releases.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Write Unit Tests에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by