-
Notifications
You must be signed in to change notification settings - Fork 76
Sorting Methods
Johan Hargne edited this page Mar 27, 2018
·
3 revisions
You can define a sorting method for the test results within the configuration with the option named "sort"
.
Method | Description |
---|---|
"default" |
Default setting. Returns the test results in the same order as they were provided from Jest. |
"executionAsc" |
Sorts the test suites based on their execution time in an ascending order. |
"executionDesc" |
Sorts the test suites based on their execution time in a descending order. |
"titleAsc" |
Sorts the test suites based on their filenames and their individual tests based on their title in an ascending order. |
"titleDesc" |
Sorts the test suites based on their filenames and their individual tests based on their title in a descending order. |
"status" |
Sorts test cases according to their status in the order of Pending > Failed > Passed (Please note that this will split test suites that have test cases with different statuses.) |