This Article 
 Bibliographic References 
 Add to: 
Automated Software Testing for Matlab
November/December 2009 (vol. 11 no. 6)
pp. 48-55
Steven L. Eddins, The MathWorks, Inc.

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 Matlab xUnit automated testing framework, scientists and engineers using Matlab can make software testing an integrated part of their software development routine.

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; 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; .
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; 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; 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; testing.htm.

Index Terms:
Matlab, software, test, testing, unit test, unit testing, xUnit
Steven L. Eddins, "Automated Software Testing for Matlab," Computing in Science and Engineering, vol. 11, no. 6, pp. 48-55, Nov.-Dec. 2009, doi:10.1109/MCSE.2009.186
Usage of this product signifies your acceptance of the Terms of Use.