Projects: Difference between revisions

Jump to navigation Jump to search
301 bytes added ,  28 March 2014
→‎Tests: encourage use of make check to run tests, __run_test_suite__ if not building from source
(→‎Input/Output: suggest xmlread and xmlwrite based on Xerces)
(→‎Tests: encourage use of make check to run tests, __run_test_suite__ if not building from source)
Line 261: Line 261:
We are far from even having one test for every function, so focus should be on getting the breadth of coverage first before trying to get the depth of 100% statement coverage.  As of Jan 2014, 243 of 834 m-files have no tests.  Some of these will be plotting functions which have demos instead, but that leaves enough functions to be an interesting project.
We are far from even having one test for every function, so focus should be on getting the breadth of coverage first before trying to get the depth of 100% statement coverage.  As of Jan 2014, 243 of 834 m-files have no tests.  Some of these will be plotting functions which have demos instead, but that leaves enough functions to be an interesting project.


On release 3.8.x, executing the __run_test_suite__ function will generate a file called  
After Octave is compiled, running the {{Codeline|make check}} build target will run the full test suite and generate a file called test/fntests.log in the build directory with a summary of the results.  At the end of the file is a list of all functions for which no tests were found.  An extract is posted in the [[files missing tests]] page.  If you are not building Octave yourself, the test suite can be run on an installed binary copy by executing the {{Codeline|__run_test_suite__}} command at the Octave prompt.  The fntests.log file will be written in the current directory in this case.
fntests.log in your current directory with a summary of the results.  It indicate at the end the functions for which no tests were found in file.  An extract is posted in the [[files missing tests]] page.


There also need to be tests for functions written in the C++ files, and that is a  
There also need to be tests for functions written in the C++ files, and that is a  
296

edits

Navigation menu