Check Files In and Out from MSSCCI Source Control . . . . . . . . . .
33-49
Check Files Into Source Control . . . . . . . . . . . . . . . . . . . . . . . . . . 33-49
Check Files Out of Source Control . . . . . . . . . . . . . . . . . . . . . . . . 33-49
Undoing the Checkout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33-50
Additional MSSCCI Source Control Actions . . . . . . . . . . . . . . . . . . 33-51
Getting the Latest Version of Files for Viewing or Compiling . . . . . 33-51
Removing Files from the Source Control System . . . . . . . . . . . . . . 33-52
Showing File History . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33-52
Comparing the Working Copy of a File to the Latest Version in Source
Control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33-53
Viewing Source Control Properties of a File . . . . . . . . . . . . . . . . . 33-54
Starting the Source Control System . . . . . . . . . . . . . . . . . . . . . . . 33-55
Access MSSCCI Source Control from Editors . . . . . . . . . . . . . . . . . 33-57
Troubleshoot MSSCCI Source Control Problems . . . . . . . . . . . . . . 33-58
Source Control Error: Provider Not Present or Not Installed Properly
................................................ 33-58
Restriction Against @ Character . . . . . . . . . . . . . . . . . . . . . . . . . . 33-59
Add to Source Control Is the Only Action Available . . . . . . . . . . . . 33-59
More Solutions for Source Control Problems . . . . . . . . . . . . . . . . 33-59
Unit Testing
34
Write Test Using Live Script . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34-3
Write Script-Based Unit Tests . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34-6
Write Script-Based Test Using Local Functions . . . . . . . . . . . . . . . 34-11
Extend Script-Based Tests . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34-14
Test Suite Creation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34-14
Test Selection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34-14
Programmatic Access of Test Diagnostics . . . . . . . . . . . . . . . . . . . 34-15
Test Runner Customization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34-15
Run Tests in Editor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34-17
Write Function-Based Unit Tests . . . . . . . . . . . . . . . . . . . . . . . . . . . 34-20
Create Test Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34-20
Run the Tests . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34-22
Analyze the Results . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34-23
Write Simple Test Case Using Functions . . . . . . . . . . . . . . . . . . . . . 34-24
Write Test Using Setup and Teardown Functions . . . . . . . . . . . . . . 34-27
Extend Function-Based Tests . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34-32
Fixtures for Setup and Teardown Code . . . . . . . . . . . . . . . . . . . . . 34-32
Test Logging and Verbosity . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34-33
xxix