diff --git a/ui/src/utils/testing.ts b/ui/src/utils/testing.ts index bf67ade75277bb03e91d71937a98f0c12c1642a5..8f122bb8ea19d15c7d2239139c2299d9b8a168ad 100644 --- a/ui/src/utils/testing.ts +++ b/ui/src/utils/testing.ts @@ -58,7 +58,7 @@ export const testToolMap = { cppunit: 'CppUnit', gtest: 'GTest', qtest: 'QTest', - goTest: 'GoTest', + gotest: 'GoTest', allure: 'Allure', robotframework: 'RobotFramework', diff --git a/ui/src/views/script/service.ts b/ui/src/views/script/service.ts index 0d1af65a6a9ab1ad9051a97089cb680928d76438..7654d06dc097e22faa5587e2209b23b4036a8322 100644 --- a/ui/src/views/script/service.ts +++ b/ui/src/views/script/service.ts @@ -246,7 +246,7 @@ export function scriptTreeAddAttr(treeData) { { hint: 'create_file', icon: 'file-add', key: 'createFile'}, ]; if(item.workspaceType != 'ztf'){ - item.toolbarItems.push({hint: testToolMap[item.workspaceType], icon: 'play', hintI18n: 'test', key: 'runTest'}) + item.toolbarItems.push({hint: testToolMap[item.workspaceType] == undefined ? "" : testToolMap[item.workspaceType], icon: 'play', hintI18n: 'test', key: 'runTest'}) } }