The Community for Technology Leaders
RSS Icon
Subscribe
Issue No.06 - November/December (2009 vol.11)
pp: 48-55
Steven L. Eddins , The MathWorks, Inc.
ABSTRACT
<p>Software testing can improve software quality. To test effectively, scientists and engineers should know how to write and run tests, define appropriate test cases, determine expected outputs, and correctly handle floating-point arithmetic. Using M<scp>atlab</scp> xUnit automated testing framework, scientists and engineers using M<scp>atlab</scp> can make software testing an integrated part of their software development routine.</p>
INDEX TERMS
Matlab, software, test, testing, unit test, unit testing, xUnit
CITATION
Steven L. Eddins, "Automated Software Testing for Matlab", Computing in Science & Engineering, vol.11, no. 6, pp. 48-55, November/December 2009, doi:10.1109/MCSE.2009.186
REFERENCES
1. J.E. Hannay et al., "How Do Scientists Develop and Use Scientific Software?" Proc. 2nd Int'l Workshop Software Eng. Computational Science and Eng., IEEE CS Press, 2009, pp. 1–8.
2. L. Hatton, "The T Experiments: Errors in Scientific Software," IEEE Computational Science &Eng., vol. 4, no. 2, 1997, pp. 27–38.
3. G. Chang et al., "Retraction of Pornillos et al., Science310 (5756) 1950–1953. Retraction of Reyes and Chang, Science308 (5724) 1028–1031. Retraction of Chang and Roth, Science293 (5536) 1793–1800," Science, vol. 314, no. 5807, 2006, p. 1875; www.sciencemag.org/cgi/content/full/314/ 58071875b.
4. B.G. Hall and S.J. Salipante, "Retraction: Measures of Clade Confidence Do Not Correlate with Accuracy of Phylogenetic Trees," PLoS Computational Biology, vol. 3, no. 3, 2007; www.ploscompbiol.org/articleinfo:doi%2F10.1371%2Fjournal.pcbi.0030051 .
5. G. Miller, "A Scientist's Nightmare: Software Problem Leads to Five Retractions," Science, vol. 314, no. 5807, 2006, pp. 1856–1857.
6. G. Wilson, "What Should Computer Scientists Teach to Physical Scientists and Engineers?" IEEE Computational Science &Eng., vol. 3, no. 2, 1996, pp. 46–65.
7. D.E. Stevenson, "A Critical Look at Quality in Large-Scale Simulations," Computing in Science &Eng., vol. 1, no. 3, 1999, pp. 53–63.
8. D. Kelly and R. Sanders, "The Challenge of Testing Scientific Software," Proc. Conf. Assoc. Software Testing: Beyond the Boundaries (CAST 2008), Assoc. Software Testing, 2008; www.associationforsoftwaretesting.org/documents/ cast08DianeKellyRebeccaSanders_TheChallengeOfTestingScientificSoftware_paper.pdf .
9. S. McConnell, Code Complete: A Practical Handbook of Software Construction, 2nd ed., Microsoft Press, 2004.
10. G. Meszaros, xUnit Test Patterns: Refactoring Test Code, Pearson Education, 2007.
11. C. Moler, "Floating Points: IEEE Standard Unifies Arithmetic Model," Cleve's Corner, The MathWorks, 1996; www.mathworks.com/company/newsletters/news_notes/ pdfFall96Cleve.pdf.
12. D. Goldberg, "What Every Computer Scientist Should Know About Floating-Point Arithmetic," Computing Surveys, vol. 23, no. 1, 1991, pp. 5–48.
13. E. Gamma and K. Beck, "JUnit Test Infected: Programmers Love Writing Tests," Source Forge, 1998; http://junit.sourceforge.net/doc/testinfected testing.htm.
15 ms
(Ver 2.0)

Marketing Automation Platform Marketing Automation Tool