Editing BIST for m-files

Jump to navigation Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 3: Line 3:
These m-files do not have built-in tests.
These m-files do not have built-in tests.


Sometimes this is because the function is interactive, like the inputdlg function, or reads data from a device like the @audiorecorder class, and would be very difficult to test.
Sometimes this is because the function is interactive, like the @ftp class, and would be very difficult to test.


Sometimes this is because the output is graphical, such as the plot routines, and would be difficult to test without image comparison routines.  These functions often have %!demo blocks instead.
Sometimes this is because the output is graphical, such as the plot routines, and would be difficult to test without image comparison routines.  These functions often have %!demo blocks instead.
Line 20: Line 20:
Before starting, take a look at [https://octave.org/doc/latest/Test-and-Demo-Functions.html#Test-and-Demo-Functions Appendix B Test and Demo Functions] and the [[Octave_style_guide|Octave Style Guide]] for what functions are available for testing and how to write code that conforms to Octave's coding guidelines.  Another good strategy is to look for %!test, %!testif, %!xtest blocks in existing m-files and see how they were coded.
Before starting, take a look at [https://octave.org/doc/latest/Test-and-Demo-Functions.html#Test-and-Demo-Functions Appendix B Test and Demo Functions] and the [[Octave_style_guide|Octave Style Guide]] for what functions are available for testing and how to write code that conforms to Octave's coding guidelines.  Another good strategy is to look for %!test, %!testif, %!xtest blocks in existing m-files and see how they were coded.


== Functions lacking tests (as of December 15, 2015) ==
== Functions lacking tests (Jan. 10th, 2014) ==


* audio/@audioplayer/__get_properties__.m
* @ftp/ascii.m
* audio/@audioplayer/display.m
* @ftp/binary.m
* audio/@audioplayer/get.m
* @ftp/cd.m
* audio/@audioplayer/isplaying.m
* @ftp/close.m
* audio/@audioplayer/pause.m
* @ftp/delete.m
* audio/@audioplayer/play.m
* @ftp/dir.m
* audio/@audioplayer/playblocking.m
* @ftp/display.m
* audio/@audioplayer/resume.m
* @ftp/ftp.m
* audio/@audioplayer/set.m
* @ftp/loadobj.m
* audio/@audioplayer/stop.m
* @ftp/mget.m
* audio/@audioplayer/subsasgn.m
* @ftp/mkdir.m
* audio/@audioplayer/subsref.m
* @ftp/mput.m
* audio/@audiorecorder/__get_properties__.m
* @ftp/rename.m
* audio/@audiorecorder/display.m
* @ftp/rmdir.m
* audio/@audiorecorder/get.m
* @ftp/saveobj.m
* audio/@audiorecorder/getaudiodata.m
* audio/@audiorecorder/getplayer.m
* audio/@audiorecorder/isrecording.m
* audio/@audiorecorder/pause.m
* audio/@audiorecorder/play.m
* audio/@audiorecorder/record.m
* audio/@audiorecorder/recordblocking.m
* audio/@audiorecorder/resume.m
* audio/@audiorecorder/set.m
* audio/@audiorecorder/stop.m
* audio/@audiorecorder/subsasgn.m
* audio/@audiorecorder/subsref.m
* audio/lin2mu.m
* audio/lin2mu.m
* audio/loadaudio.m
* audio/mu2lin.m
* audio/mu2lin.m
* audio/record.m
* audio/saveaudio.m
* audio/setaudio.m
* general/del2.m
* general/display.m
* general/display.m
* general/loadobj.m
* general/loadobj.m
Line 56: Line 49:
* general/saveobj.m
* general/saveobj.m
* general/subsindex.m
* general/subsindex.m
* geometry/delaunayn.m
* gui/errordlg.m
* gui/errordlg.m
* gui/guihandles.m
* gui/guihandles.m
Line 72: Line 66:
* gui/uiwait.m
* gui/uiwait.m
* gui/warndlg.m
* gui/warndlg.m
* help/__gripe_missing_component__.m
* help/lookfor.m
* help/lookfor.m
* image/autumn.m
* image/autumn.m
Line 79: Line 74:
* image/cool.m
* image/cool.m
* image/copper.m
* image/copper.m
* image/cubehelix.m
* image/flag.m
* image/flag.m
* image/gmap40.m
* image/gray.m
* image/gray.m
* image/hot.m
* image/hot.m
* image/hsv.m
* image/hsv.m
* image/image.m
* image/imagesc.m
* image/imagesc.m
* image/imfinfo.m
* image/jet.m
* image/jet.m
* image/lines.m
* image/lines.m
Line 94: Line 91:
* image/spring.m
* image/spring.m
* image/summer.m
* image/summer.m
* image/viridis.m
* image/white.m
* image/white.m
* image/winter.m
* image/winter.m
* java/javaArray.m
* java/javaArray.m
* java/java_get.m
* java/java_set.m
* java/javaaddpath.m
* java/javaaddpath.m
* java/javaclasspath.m
* java/javaclasspath.m
Line 105: Line 99:
* java/javarmpath.m
* java/javarmpath.m
* linear-algebra/krylov.m
* linear-algebra/krylov.m
* linear-algebra/subspace.m
* miscellaneous/bunzip2.m
* miscellaneous/cast.m
* miscellaneous/copyfile.m
* miscellaneous/debug.m
* miscellaneous/dir.m
* miscellaneous/dump_prefs.m
* miscellaneous/fact.m
* miscellaneous/fileattrib.m
* miscellaneous/getappdata.m
* miscellaneous/gunzip.m
* miscellaneous/info.m
* miscellaneous/menu.m
* miscellaneous/mex.m
* miscellaneous/mkoctfile.m
* miscellaneous/mkoctfile.m
* ode/odeplot.m
* miscellaneous/movefile.m
* miscellaneous/pack.m
* miscellaneous/parseparams.m
* miscellaneous/perl.m
* miscellaneous/python.m
* miscellaneous/tar.m
* miscellaneous/unpack.m
* miscellaneous/untar.m
* miscellaneous/unzip.m
* miscellaneous/what.m
* miscellaneous/zip.m
* optimization/glpk.m
* optimization/glpk.m
* path/pathdef.m
* path/savepath.m
* pkg/pkg.m
* pkg/pkg.m
* plot/appearance/__clabel__.m
* plot/appearance/__getlegenddata__.m
* plot/appearance/box.m
* plot/appearance/box.m
* plot/appearance/caxis.m
* plot/appearance/caxis.m
Line 166: Line 188:
* plot/draw/surfc.m
* plot/draw/surfc.m
* plot/draw/surfl.m
* plot/draw/surfl.m
* plot/draw/surfnorm.m
* plot/draw/tetramesh.m
* plot/draw/tetramesh.m
* plot/draw/triplot.m
* plot/draw/triplot.m
* plot/draw/waterfall.m
* plot/draw/waterfall.m
* plot/util/__actual_axis_position__.m
* plot/util/__default_plot_options__.m
* plot/util/__next_line_color__.m
* plot/util/__next_line_style__.m
* plot/util/__pltopt__.m
* plot/util/axes.m
* plot/util/axes.m
* plot/util/closereq.m
* plot/util/closereq.m
Line 174: Line 202:
* plot/util/gco.m
* plot/util/gco.m
* plot/util/hdl2struct.m
* plot/util/hdl2struct.m
* plot/util/pan.m
* plot/util/linkprop.m
* plot/util/print.m
* plot/util/print.m
* plot/util/refresh.m
* plot/util/refresh.m
* plot/util/refreshdata.m
* plot/util/refreshdata.m
* plot/util/rotate3d.m
* plot/util/saveas.m
* plot/util/saveas.m
* plot/util/shg.m
* plot/util/shg.m
* plot/util/struct2hdl.m
* plot/util/struct2hdl.m
* plot/util/zoom.m
* plot/util/subplot.m
* prefs/addpref.m
* prefs/getpref.m
* prefs/ispref.m
* prefs/prefdir.m
* prefs/preferences.m
* prefs/setpref.m
* signal/arch_fit.m
* signal/arch_fit.m
* signal/arch_rnd.m
* signal/arch_rnd.m
Line 193: Line 226:
* signal/freqz_plot.m
* signal/freqz_plot.m
* signal/hurst.m
* signal/hurst.m
* signal/periodogram.m
* signal/spencer.m
* signal/spencer.m
* signal/stft.m
* signal/stft.m
Line 200: Line 234:
* sparse/etreeplot.m
* sparse/etreeplot.m
* sparse/treeplot.m
* sparse/treeplot.m
* special-matrix/gallery.m
* statistics/base/qqplot.m
* statistics/base/qqplot.m
* statistics/distributions/wienrnd.m
* statistics/distributions/wienrnd.m
Line 217: Line 252:
* statistics/tests/run_test.m
* statistics/tests/run_test.m
* statistics/tests/sign_test.m
* statistics/tests/sign_test.m
* statistics/tests/t_test.m
* statistics/tests/t_test_2.m
* statistics/tests/t_test_2.m
* statistics/tests/t_test_regression.m
* statistics/tests/t_test_regression.m
Line 223: Line 259:
* statistics/tests/welch_test.m
* statistics/tests/welch_test.m
* statistics/tests/wilcoxon_test.m
* statistics/tests/wilcoxon_test.m
* statistics/tests/z_test.m
* statistics/tests/z_test_2.m
* statistics/tests/z_test_2.m
 
* testfun/__have_feature__.m
[[Category:Development]]
* testfun/__printf_assert__.m
[[Category:Testing]]
* testfun/__prog_output_assert__.m
* testfun/__run_test_suite__.m
Please note that all contributions to Octave may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see Octave:Copyrights for details). Do not submit copyrighted work without permission!

To edit this page, please answer the question that appears below (more info):

Cancel Editing help (opens in new window)