Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Testing] Increase test coverage #419

Open
taniarascia opened this issue Oct 26, 2020 · 0 comments
Open

[Testing] Increase test coverage #419

taniarascia opened this issue Oct 26, 2020 · 0 comments

Comments

@taniarascia
Copy link
Owner

@taniarascia taniarascia commented Oct 26, 2020

The test coverage is currently visible on Coveralls. At the time of writing, coverage is 68%. Not too bad! Ideally, we could be somewhere in the 80-90% range.

Coverage Status

You can see coverage by running npm run test:coverage.

File % Stmts % Branch % Funcs % Lines Uncovered Line #s
All files 65.04 29.72 40.79 68.84
src/client/api 63.16 18.75 63.64 64.29
index.ts 63.16 18.75 63.64 64.29 ...6-85,92-96,103
src/client/components 60 50 37.5 64
LastSyncedNotification.tsx 78.57 50 100 78.57 17,21,25
Select.tsx 18.18 100 0 25 15-26
Switch.tsx 100 100 100 100
...lient/components/AppSidebar 76.67 55.56 41.18 75.29
ActionButton.tsx 100 50 100 100 17
AddCategoryButton.tsx 88.89 100 50 88.89 21
AddCategoryForm.tsx 21.43 0 0 21.43 16-39
CollapseCategoryButton.tsx 100 50 100 100 24
FolderOption.tsx 78.38 87.5 37.5 77.14 ...39-42,49,70-74
ScratchpadOption.tsx 90.91 50 50 88.89 21
src/client/components/Editor 66.67 100 50 85.71
EmptyEditor.tsx 100 100 100 100
PreviewEditor.tsx 50 100 0 75 10
src/client/components/NoteList 67.5 50 33.33 66.67
ContextMenuOption.tsx 100 100 100 100
NoteListButton.tsx 100 100 100 100
SearchBar.tsx 75 100 50 66.67 17-18
SelectCategory.tsx 26.67 0 0 28.57 15-38
...nt/components/SettingsModal 34.38 0 0 44
IconButton.tsx 30 0 0 33.33 15-21
Option.tsx 37.5 100 0 75 13
SelectOptions.tsx 33.33 100 0 33.33 14-20
Shortcut.tsx 40 100 0 66.67 9
src/client/components/Tabs 25 0 0 41.18
Tab.tsx 22.22 0 0 40 12-15
TabPanel.tsx 50 100 0 66.67 11
Tabs.tsx 20 0 0 33.33 10-33
src/client/containers 55.77 10.25 11.58 59.74
AppSidebar.tsx 77.27 100 9.09 90.91 44,46,59
CategoryList.tsx 57.65 7.89 23.53 55.71 ...18-126,147,167
CategoryOption.tsx 19.7 0 0 21.67 35-138
ContextMenu.tsx 23.21 0 0 26.53 30-97,118,131-159
ContextMenuOptions.tsx 55.07 65 9.52 62.26 ...19,127,134-135
KeyboardShortcuts.tsx 64.04 0 3.7 77.42 ...,96-97,101-112
NoteEditor.tsx 61.11 11.76 22.22 60.87 39-40,45,48-86
NoteList.tsx 46.79 2.63 11.54 47.73 ...17-140,168-236
NoteMenuBar.tsx 70.59 33.33 6.67 88.57 40,44,56-57
SettingsModal.tsx 65.38 5.56 13.64 70.77 ...,91,94,117-191
TakeNoteApp.tsx 81.97 0 50 84 55,57,64-71,86
src/client/contexts 88.89 50 66.67 85.71
TempStateContext.tsx 88.89 50 66.67 85.71 10,19
src/client/sagas 47.06 20 50 47.73
index.ts 47.06 20 50 47.73 ...8-81,93,99-116
src/client/selectors 70 100 40 100
index.ts 70 100 40 100
src/client/slices 97.25 84 96.51 97.47
auth.ts 100 100 100 100
category.ts 100 50 100 100 33-49
index.ts 100 100 100 100
note.ts 98.39 86.96 98.15 99.05 215
settings.ts 76.47 100 75 76.47 47-48,59-60
sync.ts 100 100 100 100
src/client/utils 57.92 26.8 50.94 60.87
constants.ts 100 100 100 100
enums.ts 100 100 100 100
helpers.ts 43 20 34.62 46.67 ...11-212,231,246
hooks.ts 72.73 31.25 68.75 72.5 33-35,45,60-71
notesSortStrategies.ts 38.46 0 33.33 40.91 ...22,28-32,38-43
src/resources 100 100 100 100
LabelText.ts 100 100 100 100
TestID.ts 100 100 100 100
src/server/middleware 100 83.33 100 100
checkAuth.ts 100 83.33 100 100 4
tests/unit/client 100 50 100 100
testHelpers.tsx 100 50 100 100 20-22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.