1,847
edits
Fgnievinski (talk | contribs) m (moved FilesMissingTests to Files missing tests: more readable non Camel case) |
m (Add Category:Development and Category:Testing.) |
||
(4 intermediate revisions by 2 users not shown) | |||
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 @ | 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 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 Appendix B Test and Demo Functions and Appendix C Tips and Standards 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 Appendix B Test and Demo Functions and Appendix C Tips and Standards 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 ( | == Functions lacking tests (as of December 15, 2015) == | ||
* @ | * audio/@audioplayer/__get_properties__.m | ||
* @ | * audio/@audioplayer/display.m | ||
* @ | * audio/@audioplayer/get.m | ||
* @ | * audio/@audioplayer/isplaying.m | ||
* @ | * audio/@audioplayer/pause.m | ||
* @ | * audio/@audioplayer/play.m | ||
* @ | * audio/@audioplayer/playblocking.m | ||
* @ | * audio/@audioplayer/resume.m | ||
* @ | * audio/@audioplayer/set.m | ||
* @ | * audio/@audioplayer/stop.m | ||
* @ | * audio/@audioplayer/subsasgn.m | ||
* @ | * audio/@audioplayer/subsref.m | ||
* @ | * audio/@audiorecorder/__get_properties__.m | ||
* @ | * audio/@audiorecorder/display.m | ||
* @ | * audio/@audiorecorder/get.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/mu2lin.m | * audio/mu2lin.m | ||
* general/display.m | * general/display.m | ||
* general/loadobj.m | * general/loadobj.m | ||
Line 49: | Line 56: | ||
* general/saveobj.m | * general/saveobj.m | ||
* general/subsindex.m | * general/subsindex.m | ||
* gui/errordlg.m | * gui/errordlg.m | ||
* gui/guihandles.m | * gui/guihandles.m | ||
Line 66: | Line 72: | ||
* gui/uiwait.m | * gui/uiwait.m | ||
* gui/warndlg.m | * gui/warndlg.m | ||
* help/lookfor.m | * help/lookfor.m | ||
* image/autumn.m | * image/autumn.m | ||
Line 74: | Line 79: | ||
* image/cool.m | * image/cool.m | ||
* image/copper.m | * image/copper.m | ||
* image/cubehelix.m | |||
* image/flag.m | * image/flag.m | ||
* image/gray.m | * image/gray.m | ||
* image/hot.m | * image/hot.m | ||
* image/hsv.m | * image/hsv.m | ||
* image/imagesc.m | * image/imagesc.m | ||
* image/jet.m | * image/jet.m | ||
* image/lines.m | * image/lines.m | ||
Line 91: | Line 94: | ||
* 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 99: | Line 105: | ||
* java/javarmpath.m | * java/javarmpath.m | ||
* linear-algebra/krylov.m | * linear-algebra/krylov.m | ||
* miscellaneous/mkoctfile.m | * miscellaneous/mkoctfile.m | ||
* | * ode/odeplot.m | ||
* optimization/glpk.m | * optimization/glpk.m | ||
* pkg/pkg.m | * pkg/pkg.m | ||
* plot/appearance/box.m | * plot/appearance/box.m | ||
* plot/appearance/caxis.m | * plot/appearance/caxis.m | ||
Line 188: | Line 166: | ||
* plot/draw/surfc.m | * plot/draw/surfc.m | ||
* plot/draw/surfl.m | * plot/draw/surfl.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/axes.m | * plot/util/axes.m | ||
* plot/util/closereq.m | * plot/util/closereq.m | ||
Line 202: | Line 174: | ||
* plot/util/gco.m | * plot/util/gco.m | ||
* plot/util/hdl2struct.m | * plot/util/hdl2struct.m | ||
* plot/util/ | * plot/util/pan.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/ | * plot/util/zoom.m | ||
* signal/arch_fit.m | * signal/arch_fit.m | ||
* signal/arch_rnd.m | * signal/arch_rnd.m | ||
Line 226: | Line 193: | ||
* signal/freqz_plot.m | * signal/freqz_plot.m | ||
* signal/hurst.m | * signal/hurst.m | ||
* signal/spencer.m | * signal/spencer.m | ||
* signal/stft.m | * signal/stft.m | ||
Line 234: | Line 200: | ||
* sparse/etreeplot.m | * sparse/etreeplot.m | ||
* sparse/treeplot.m | * sparse/treeplot.m | ||
* statistics/base/qqplot.m | * statistics/base/qqplot.m | ||
* statistics/distributions/wienrnd.m | * statistics/distributions/wienrnd.m | ||
Line 252: | Line 217: | ||
* statistics/tests/run_test.m | * statistics/tests/run_test.m | ||
* statistics/tests/sign_test.m | * statistics/tests/sign_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 259: | Line 223: | ||
* statistics/tests/welch_test.m | * statistics/tests/welch_test.m | ||
* statistics/tests/wilcoxon_test.m | * statistics/tests/wilcoxon_test.m | ||
* statistics/tests/z_test_2.m | * statistics/tests/z_test_2.m | ||
[[Category:Development]] | |||
[[Category:Testing]] | |||