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: packages/plugin-awesome/README.md
+21Lines changed: 21 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -58,6 +58,27 @@ The plugin accepts the following options:
58
58
|`groupBy`| Grouping tests by labels or combining labels. By default, tests are grouped using the `titlePath` provided by the test framework. |`string`|`[]`(Grouping by `titlepath`) |
59
59
|`appendTitlePath`| Special marker for `groupBy`. Forces a final grouping by `titlePath` after all label-based groups. |`boolean`|`false`|
60
60
|`stepTreeExpansion`| Default expansion policy for step trees in test details. |`"collapsed" \| "expand_failed_only" \| "expanded"`|`"expand_failed_only"`|
61
+
|`defaultSortBy`| Default sort order for the test tree. Accepted values: `order,asc`, `order,desc`, `duration,asc`, `duration,desc`, `name,asc`, `name,desc`, `status,asc`, `status,desc`. User's manual selection is preserved in `localStorage` and takes priority over this value. |`string`|`order,asc`|
62
+
63
+
### Default sort order
64
+
65
+
Use `defaultSortBy` to change the initial sort order of the test tree:
66
+
67
+
```ts
68
+
import { defineConfig } from"allure";
69
+
70
+
exportdefaultdefineConfig({
71
+
plugins: {
72
+
awesome: {
73
+
options: {
74
+
defaultSortBy: "name,asc",
75
+
},
76
+
},
77
+
},
78
+
});
79
+
```
80
+
81
+
The user's last selected sort order is always preserved in `localStorage`, so once a user changes the sort manually, their preference takes priority over the configured default.
0 commit comments