MATLAB Programming Fundamentals - MathWorks

(やまだぃちぅ) #1

Unit Testing



  • “Write Test Using Live Script” on page 33-3

  • “Write Script-Based Unit Tests” on page 33-6

  • “Write Script-Based Test Using Local Functions” on page 33-13

  • “Extending Script-Based Tests” on page 33-17

  • “Run Tests in Editor” on page 33-21

  • “Write Function-Based Unit Tests” on page 33-25

  • “Write Simple Test Case Using Functions” on page 33-30

  • “Write Test Using Setup and Teardown Functions” on page 33-35

  • “Extending Function-Based Tests” on page 33-42

  • “Author Class-Based Unit Tests in MATLAB” on page 33-47

  • “Write Simple Test Case Using Classes” on page 33-51

  • “Write Setup and Teardown Code Using Classes” on page 33-56

  • “Types of Qualifications” on page 33-60

  • “Tag Unit Tests” on page 33-63

  • “Write Tests Using Shared Fixtures” on page 33-68

  • “Create Basic Custom Fixture” on page 33-72

  • “Create Advanced Custom Fixture” on page 33-75

  • “Create Basic Parameterized Test” on page 33-82

  • “Create Advanced Parameterized Test” on page 33-88

  • “Use External Parameters in Parameterized Test” on page 33-97

  • “Create Simple Test Suites” on page 33-102

  • “Run Tests for Various Workflows” on page 33-105

  • “Programmatically Access Test Diagnostics” on page 33-109

  • “Add Plugin to Test Runner” on page 33-110

  • “Write Plugins to Extend TestRunner” on page 33-113

  • “Create Custom Plugin” on page 33-117


33

Free download pdf