BIST for m-files: Difference between revisions

Jump to navigation Jump to search
m
(→‎Functions lacking tests (as of May 27, 2015): updated list from current fntests.log)
(3 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 @ftp class, and would be very difficult to test.
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 (as of May 27, 2015) ==
== Functions lacking tests (as of December 15, 2015) ==


* audio/@audioplayer/__get_properties__.m
* audio/@audioplayer/__get_properties__.m
Line 94: 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
Line 104: Line 105:
* java/javarmpath.m
* java/javarmpath.m
* linear-algebra/krylov.m
* linear-algebra/krylov.m
* miscellaneous/fileattrib.m
* miscellaneous/mkoctfile.m
* miscellaneous/mkoctfile.m
* ode/odeplot.m
* optimization/glpk.m
* optimization/glpk.m
* pkg/pkg.m
* pkg/pkg.m
Line 182: Line 183:
* plot/util/struct2hdl.m
* plot/util/struct2hdl.m
* plot/util/zoom.m
* plot/util/zoom.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 229: Line 224:
* 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]]

Navigation menu