Write Test for App ......................................
35-155
Write Test That Uses App Testing and Mocking Frameworks ...
35-159
Create App .........................................
35-159
Test App With Manual Intervention .......................
35-160
Create Fully Automated Test ...........................
35-161
Overview of Performance Testing Framework ................
35-164
Determine Bounds of Measured Code .....................
35-164
Types of Time Experiments .............................
35-165
Write Performance Tests with Measurement Boundaries .......
35-165
Run Performance Tests ................................
35-166
Understand Invalid Test Results .........................
35-166
Test Performance Using Scripts or Functions ................
35-168
Test Performance Using Classes ..........................
35-172
Measure Fast Executing Test Code ........................
35-178
Create Mock Object .....................................
35-181
Specify Mock Object Behavior ............................
35-188
Define Mock Method Behavior ..........................
35-188
Define Mock Property Behavior .........................
35-189
Define Repeating and Subsequent Behavior ................
35-190
Summary of Behaviors ................................
35-192
Qualify Mock Object Interaction ..........................
35-193
Qualify Mock Method Interaction ........................
35-193
Qualify Mock Property Interaction .......................
35-194
Use Mock Object Constraints ...........................
35-195
Summary of Qualifications .............................
35-197
Ways to Write Unit Tests .................................
35-199
Script-Based Unit Tests ...............................
35-199
Function-Based Unit Tests .............................
35-200
Class-Based Unit Tests ................................
35-200
Extend Unit Testing Framework .........................
35-201
Compile MATLAB Unit Tests ..............................
35-202
Run Tests with Standalone Applications ...................
35-202
Run Tests in Parallel with Standalone Applications ...........
35-203
TestRand Class Definition Summary ......................
35-203
Develop and Integrate Software with Continuous Integration ..
35-205
Continuous Integration Workflow ........................
35-205
Continuous Integration with MathWorks Products ...........
35-207
Generate Artifacts Using MATLAB Unit Test Plugins ..........
35-209
Continuous Integration with MATLAB on CI Platforms ........
35-213
Azure DevOps ......................................
35-213
Bamboo ...........................................
35-213
CircleCI ...........................................
35-213
xxxii
Contents
35-155
Write Test That Uses App Testing and Mocking Frameworks ...
35-159
Create App .........................................
35-159
Test App With Manual Intervention .......................
35-160
Create Fully Automated Test ...........................
35-161
Overview of Performance Testing Framework ................
35-164
Determine Bounds of Measured Code .....................
35-164
Types of Time Experiments .............................
35-165
Write Performance Tests with Measurement Boundaries .......
35-165
Run Performance Tests ................................
35-166
Understand Invalid Test Results .........................
35-166
Test Performance Using Scripts or Functions ................
35-168
Test Performance Using Classes ..........................
35-172
Measure Fast Executing Test Code ........................
35-178
Create Mock Object .....................................
35-181
Specify Mock Object Behavior ............................
35-188
Define Mock Method Behavior ..........................
35-188
Define Mock Property Behavior .........................
35-189
Define Repeating and Subsequent Behavior ................
35-190
Summary of Behaviors ................................
35-192
Qualify Mock Object Interaction ..........................
35-193
Qualify Mock Method Interaction ........................
35-193
Qualify Mock Property Interaction .......................
35-194
Use Mock Object Constraints ...........................
35-195
Summary of Qualifications .............................
35-197
Ways to Write Unit Tests .................................
35-199
Script-Based Unit Tests ...............................
35-199
Function-Based Unit Tests .............................
35-200
Class-Based Unit Tests ................................
35-200
Extend Unit Testing Framework .........................
35-201
Compile MATLAB Unit Tests ..............................
35-202
Run Tests with Standalone Applications ...................
35-202
Run Tests in Parallel with Standalone Applications ...........
35-203
TestRand Class Definition Summary ......................
35-203
Develop and Integrate Software with Continuous Integration ..
35-205
Continuous Integration Workflow ........................
35-205
Continuous Integration with MathWorks Products ...........
35-207
Generate Artifacts Using MATLAB Unit Test Plugins ..........
35-209
Continuous Integration with MATLAB on CI Platforms ........
35-213
Azure DevOps ......................................
35-213
Bamboo ...........................................
35-213
CircleCI ...........................................
35-213
xxxii
Contents
