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/get-started/inputs/dita.mdx
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -112,6 +112,15 @@ Doc Detective recognizes specific action verbs in `<cmd>` elements to determine
112
112
113
113
When these verbs appear with DITA semantic elements, Doc Detective automatically extracts the complete action. For example, `<cmd>Click the <uicontrol>Save</uicontrol> button</cmd>` generates `{ "click": "Save" }`.
114
114
115
+
## Best practices
116
+
117
+
- Use semantic DITA elements (`<uicontrol>`, `<userinput>`, etc.) for accurate test detection
118
+
- Structure procedures as DITA task topics with `<steps>` and `<cmd>` elements
119
+
- Use `scope="external"` on `<xref>` elements for external links
120
+
- Add `outputclass` attributes to `<codeblock>` elements to specify language
121
+
- Combine inline processing instructions with detected tests for comprehensive coverage
122
+
- Use action verbs consistently (click, type, navigate, verify, etc.)
123
+
115
124
## Default DITA patterns
116
125
117
126
### Key patterns
@@ -256,15 +265,6 @@ For a complete list of patterns, see the [configuration reference](/docs/referen
256
265
}
257
266
```
258
267
259
-
## Best practices
260
-
261
-
- Use semantic DITA elements (`<uicontrol>`, `<userinput>`, etc.) for accurate test detection
262
-
- Structure procedures as DITA task topics with `<steps>` and `<cmd>` elements
263
-
- Use `scope="external"` on `<xref>` elements for external links
264
-
- Add `outputclass` attributes to `<codeblock>` elements to specify language
265
-
- Combine inline processing instructions with detected tests for comprehensive coverage
266
-
- Use action verbs consistently (click, type, navigate, verify, etc.)
267
-
268
268
## Next steps
269
269
270
270
- Learn about [inline tests](/docs/get-started/tests/inline) for manual test definition
Copy file name to clipboardExpand all lines: docs/get-started/tests/detected.mdx
+11-11Lines changed: 11 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,6 +12,17 @@ Detected tests are useful for keeping your tests in sync with your documentation
12
12
13
13
> You can mix detected tests with [inline tests](inline) to declare steps that might not be covered in your content, such starting or stopping a recording.
14
14
15
+
## Benefits of detected tests
16
+
17
+
Detected tests provide several advantages:
18
+
19
+
-**Automatic synchronization**: Tests update automatically when documentation changes
20
+
-**Reduced maintenance**: No need to manually update test specifications
21
+
-**Consistent coverage**: Ensures all documented procedures are tested
22
+
-**Time savings**: Eliminates the need to write many test specifications manually
23
+
24
+
Combine detected tests with [inline tests](inline) for comprehensive test coverage with minimal manual effort.
25
+
15
26
## Default markup patterns
16
27
17
28
Doc Detective includes default markup patterns for Markdown and DITA files. For comprehensive information about each input format and their patterns, see [Input formats](/docs/get-started/inputs/overview).
@@ -243,14 +254,3 @@ Load a browser cookie by name from a default location.
243
254
```json
244
255
{ "loadCookie": "$1" }
245
256
```
246
-
247
-
## Benefits of detected tests
248
-
249
-
Detected tests provide several advantages:
250
-
251
-
-**Automatic synchronization**: Tests update automatically when documentation changes
252
-
-**Reduced maintenance**: No need to manually update test specifications
253
-
-**Consistent coverage**: Ensures all documented procedures are tested
254
-
-**Time savings**: Eliminates the need to write many test specifications manually
255
-
256
-
Combine detected tests with [inline tests](inline) for comprehensive test coverage with minimal manual effort.
Copy file name to clipboardExpand all lines: docs/get-started/tests/inline.mdx
+11-11Lines changed: 11 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,6 +26,17 @@ When you declare a step, you can specify any of the properties of the action you
26
26
27
27
If you declare a step without declaring a test, Doc Detective automatically creates a test to contain the step.
28
28
29
+
## Benefits of inline tests
30
+
31
+
Inline tests offer several advantages:
32
+
33
+
-**Proximity to content**: Tests are defined right next to the instructions they validate, making it easier to keep them in sync.
34
+
-**Easy maintenance**: When you update documentation, the associated tests are immediately visible and can be updated at the same time.
35
+
-**Documentation as code**: Tests become part of the documentation source, ensuring that documentation and testing evolve together.
36
+
-**Quick validation**: Small, focused tests can be quickly added to validate specific instructions or procedures.
37
+
38
+
Inline tests can be combined with [detected tests](detected) to create comprehensive test coverage with minimal manual test definition.
39
+
29
40
## Comment patterns by file type
30
41
31
42
Doc Detective supports different comment patterns depending on your file type. For more information about input formats, see [Input formats](/docs/get-started/inputs/overview).
@@ -167,14 +178,3 @@ Click the *Start* button:
167
178
168
179
// (test end)
169
180
```
170
-
171
-
## Benefits of inline tests
172
-
173
-
Inline tests offer several advantages:
174
-
175
-
-**Proximity to content**: Tests are defined right next to the instructions they validate, making it easier to keep them in sync.
176
-
-**Easy maintenance**: When you update documentation, the associated tests are immediately visible and can be updated at the same time.
177
-
-**Documentation as code**: Tests become part of the documentation source, ensuring that documentation and testing evolve together.
178
-
-**Quick validation**: Small, focused tests can be quickly added to validate specific instructions or procedures.
179
-
180
-
Inline tests can be combined with [detected tests](detected) to create comprehensive test coverage with minimal manual test definition.
0 commit comments