diff --git a/news/2 Fixes/4578.md b/news/2 Fixes/4578.md new file mode 100644 index 000000000000..c8988451b305 --- /dev/null +++ b/news/2 Fixes/4578.md @@ -0,0 +1 @@ +Show an "unknown" icon when test status is unknown. diff --git a/resources/dark/status-unknown.svg b/resources/dark/status-unknown.svg new file mode 100644 index 000000000000..055d724616da --- /dev/null +++ b/resources/dark/status-unknown.svg @@ -0,0 +1,4 @@ + + + ? + diff --git a/resources/light/status-unknown.svg b/resources/light/status-unknown.svg new file mode 100644 index 000000000000..055d724616da --- /dev/null +++ b/resources/light/status-unknown.svg @@ -0,0 +1,4 @@ + + + ? + diff --git a/src/client/unittests/common/constants.ts b/src/client/unittests/common/constants.ts index 74ac43e5c5eb..fe5e71044ddd 100644 --- a/src/client/unittests/common/constants.ts +++ b/src/client/unittests/common/constants.ts @@ -23,5 +23,6 @@ export const UNITTEST_PROVIDER: TestProvider = 'unittest'; export enum Icons { discovering = 'discovering-tests.svg', passed = 'status-ok.svg', - failed = 'status-error.svg' + failed = 'status-error.svg', + unknown = 'status-unknown.svg' } diff --git a/src/client/unittests/explorer/testTreeViewItem.ts b/src/client/unittests/explorer/testTreeViewItem.ts index a94d2ce16aa2..51fc78d2bb0a 100644 --- a/src/client/unittests/explorer/testTreeViewItem.ts +++ b/src/client/unittests/explorer/testTreeViewItem.ts @@ -62,7 +62,7 @@ export abstract class TestTreeItem extends TreeItem { return ThemeIcon.Folder; } default: { - return ''; + return getIcon(Icons.unknown); } } }