You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/testing.md
+32-50Lines changed: 32 additions & 50 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,11 +1,13 @@
1
1
# Testing
2
2
3
-
Use this page to choose the smallest supported build task that proves the
4
-
change you made.
3
+
Use this page to choose the smallest supported validation entry point. The
4
+
public build-task set is intentionally small; changed-file tasks inspect the
5
+
current git diff and print why each selected scope is being run.
5
6
6
7
## Default Check
7
8
8
-
Run the default non-GUI build task for broad local validation:
9
+
Run the default broad non-GUI check when you are not sure which focused scope
10
+
applies:
9
11
10
12
```bash
11
13
buildtool headless
@@ -39,10 +41,10 @@ buildtool listTasks
39
41
40
42
| Task | Use it for |
41
43
| --- | --- |
42
-
|`changed`|Fast local validation selected from changed and untracked files. |
43
-
|`changedFast`|Faster changed-file validation for local iteration; uses representative GUI workflow/layout coverage when broad app GUI coverage would otherwise run. |
44
+
|`changedFast`|Tight local iteration from the current diff; substitutes representative GUI coverage for expensive broad GUI scopes. |
45
+
|`changed`|Conservative pre-handoff validation from the current diff. |
44
46
|`headless`| Full non-GUI validation. |
45
-
|`gui`|Noninteractive GUI launch, layout, callback, workflow, and gesture checks. GUI windows are hidden by default. |
47
+
|`gui`|Full automated GUI validation with hidden figures. |
46
48
47
49
Report and discovery tasks:
48
50
@@ -53,34 +55,28 @@ Report and discovery tasks:
53
55
54
56
## Choosing A Task
55
57
56
-
Use build tasks directly for local iteration. The `changed` task is the
57
-
default focused choice before committing: it inspects changed and untracked
58
-
files and runs a conservative serial validation plan inside one MATLAB
59
-
process. It requires git and a git checkout. Use `headless` in exported
60
-
source trees, packaged copies, or environments without git state.
61
-
Use `changedFast` during tight edit cycles when a shared UI or broad app-GUI
62
-
change would otherwise run the full downstream app GUI suite. It keeps
63
-
reusable UI coverage and representative downstream app checks, but it is
64
-
not a substitute for the conservative `changed` task before handoff.
65
-
Fast validation plans may combine suite routing with test-name selectors for
66
-
expensive GUI coverage. Keep those selectors small and contract-oriented:
67
-
choose tests that cover startup, declarative shell behavior, debug trace
68
-
plumbing, hidden synthetic workflows, and representative downstream app
69
-
layouts.
58
+
Prefer automatic routing before hand-picking suites:
70
59
71
60
Common choices:
72
61
73
62
| Change area | Build task |
74
63
| --- | --- |
75
-
|Changed source, tests, or docs before commit |`buildtool changed`|
76
-
|Local iteration after a broad UI or GUI-adjacent edit |`buildtool changedFast`|
64
+
|Local iteration while files are changing |`buildtool changedFast`|
65
+
|Before commit, PR, or handoff |`buildtool changed`|
77
66
| Full broad non-GUI validation |`buildtool headless`|
78
-
|Any GUI launch, layout, callback, or gesture change|`buildtool gui`|
0 commit comments