Skip to content

Implement tests#81

Merged
HansKre merged 1 commit intomainfrom
feature/create-tests
Oct 22, 2025
Merged

Implement tests#81
HansKre merged 1 commit intomainfrom
feature/create-tests

Conversation

@HansKre
Copy link
Copy Markdown
Owner

@HansKre HansKre commented Oct 22, 2025

Code Coverage

File % Stmts % Branch % Funcs % Lines Uncovered Line #s
All files 66.1 63.06 57.86 69.9
src 100 89.47 100 100
getFileBlacklist.ts 100 100 100 100
getInstanceConfig.ts 100 88.23 100 100 5-7
src/components/BaseBranchLabel 100 88.88 100 100
BaseBranchLabel.tsx 100 88.88 100 100 3
src/components/CliboardCopy 80.76 67.44 76.92 85
CliboardCopy.tsx 80.76 67.44 76.92 85 10-11,16,21-23
src/components/ClosePopupButton 100 85.71 100 100
ClosePopupButton.tsx 100 85.71 100 100 3
src/components/ConflictsHint 100 85.71 100 100
ConflictsHint.tsx 100 85.71 100 100 3
src/components/FeatureInput 70 61.01 68.18 75.47
FeatureInput.tsx 70 61.01 68.18 75.47 10-11,16,21-23,39,60-70
src/components/FeatureItem 100 88.88 100 100
FeatureItem.tsx 100 88.88 100 100 3
src/components/IconButton 100 93.75 100 100
IconButton.tsx 100 93.75 100 100 3
src/components/JiraStatus 66.03 46.77 50 69.04
JiraStatus.tsx 66.03 46.77 50 69.04 10-11,16,21-23,47-56
src/components/Paragraph 100 85.71 100 100
Paragraph.tsx 100 85.71 100 100 3
src/components/RandomReviewerButton 43.68 47.76 26.66 46.34
RandomReviewerButton.tsx 43.68 47.76 26.66 46.34 10-11,16,21-23,36-41,57,63-67,70-77,80-82,90-108,113-131
src/components/SearchInput 73.21 66 64.7 77.27
SearchInput.tsx 73.21 66 64.7 77.27 10-11,16,21-23,55-59
src/components/SectionTitle 100 85.71 100 100
SectionTitle.tsx 100 85.71 100 100 3
src/components/Subtitle 100 85.71 100 100
Subtitle.tsx 100 85.71 100 100 3
src/components/TabNavigation 100 88.88 100 100
TabNavigation.tsx 100 88.88 100 100 3
src/components/TotalLines 100 88.88 100 100
TotalLines.tsx 100 88.88 100 100 3
src/components/UpdateBranchButton 42.39 52.45 29.62 42.66
UpdateBranchButton.tsx 42.39 52.45 29.62 42.66 10-11,16,21-23,36-41,57,63-128
src/constants 100 100 100 100
tabs.ts 100 100 100 100
src/content 56.32 56.89 58.99 59.45
addBaseBranchLabels.tsx 93.33 93.75 92.85 100 3,12
addChangedFiles.tsx 92 90.9 90 100 3
addCopyBaseBranchToPr.tsx 100 91.3 100 100 3,29
addDescriptionTemplate.ts 0 0 0 0 2-23
addJiraStatus.tsx 94.11 88.63 90 100 3,12,26,35
addPrTitleFromJira.ts 0 0 0 0 2-28
addTotalLines.tsx 89.13 92.85 84.61 97.5 6
addUpdateBranchButton.tsx 0 0 0 0 2-136
getPrFromLocation.ts 100 85.71 100 100 4
handlePrFilter.ts 94.87 81.81 100 94.87 44,46
handleRandomReviewer.tsx 42.85 40 33.33 42.85 13-19,23-32
handleTotalLines.ts 89.65 88.67 86.66 96.15 6,63
injectPrFiles.tsx 36.84 46.15 50 36.84 13-28
injectPrFilesSearch.tsx 38.88 35.29 50 38.88 12-23
processPrFiles.ts 88.46 92.3 88.88 100 3
reOrderPrs.ts 0 0 0 0 2-80
spinner.ts 100 100 100 100
types.ts 36.36 43.9 36.36 45.45 3-11,14-16,20-25,29-32
src/content/FilesWithDiff 58.9 53.03 35 63.79
FileWithDiff.tsx 55.55 50 35.29 59.18 10-11,16,21-23,45-46,55,59-80
FilesWithDiff.tsx 80 75 33.33 88.88 10
src/content/PrFiles 63.63 60.41 42.85 65.9
PrFiles.tsx 63.63 60.41 42.85 65.9 10-11,16,21-23,46-57
src/content/PrFilesSearch 36.03 38.15 15.38 38.63
PrFilesSearch.tsx 36.03 38.15 15.38 38.63 10-11,16,21-23,46-112,120,127-128,132-136,143
src/content/utils 100 84.21 100 100
comparePageUtils.ts 100 94.11 100 100 6
isOnPrPage.ts 100 0 100 100 5
isOnPrsPage.ts 100 0 100 100 5
urls.ts 100 100 100 100
src/pages 65.97 53.33 48 67.46
Options.tsx 65.97 53.33 48 67.46 10-11,16,21-23,69-79,85-86,89-90,93-94,99-107,114-117
src/pages/Button 89.87 82.11 88.63 95.55
AddButton.tsx 100 85.71 100 100 3
Button.tsx 100 88.88 100 100 3
ExportButton.tsx 92.1 90.47 92.3 100 3,12,48-51
ImportButton.tsx 83.33 74.32 81.81 90.16 10-11,16,21-23
RemoveButton.tsx 100 85.71 100 100 3
SubmitButton.tsx 100 91.66 100 100 3
src/pages/FormField 100 88.88 100 100
FormField.tsx 100 88.88 100 100 3
src/pages/Tabs/FeatureTogglesTab 54.54 85.71 16.66 54.54
FeatureTogglesTab.tsx 54.54 85.71 16.66 54.54 17-33
src/pages/Tabs/GhInstancesTab 89.47 84.61 66.66 89.47
GhInstancesTab.tsx 89.47 84.61 66.66 89.47 25-32
src/pages/Tabs/ImportExportTab 78.57 85.71 50 78.57
ImportExportTab.tsx 78.57 85.71 50 78.57 15-18
src/pages/Tabs/JiraTab 100 85.71 100 100
JiraTab.tsx 100 85.71 100 100 3
src/services 82.85 86.76 78 91.8
JiraService.ts 71.42 85.71 63.63 86.95 3,5-6
getOctoInstance.ts 85.71 94.11 85.71 92.85 6,61-62
getSettings.ts 81.63 81.81 73.68 90.9 3,5-6,26
persistSettings.ts 100 87.5 100 100 31

@HansKre HansKre self-assigned this Oct 22, 2025
@HansKre
Copy link
Copy Markdown
Owner Author

HansKre commented Oct 22, 2025

@lukegskw habe die KI paar Tests generieren lassen. Code Coverage nicht perfekt, aber für den Anfang Mal nicht schlecht. Da ich mir die Tests selbst im Detail nicht so genau angeschaut habe, würde ich ohne Review mergen. Für dich zur Info, dass wir jetzt paar Tests haben :-)

image

@HansKre HansKre merged commit ba46cdd into main Oct 22, 2025
1 check passed
@HansKre HansKre deleted the feature/create-tests branch October 22, 2025 16:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant