Only a handful of components are automatically tested using the Jest-framework at this moment. The goal is to automatically test as much components as possible.
This is the coverage report at this moment (don't stare blindly at the coverage percentages, it makes way more sense to perform sensible tests instead of desperately trying to reach 100% test coverage):
------------------------------------------------|----------|----------|----------|----------|-------------------|
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s |
------------------------------------------------|----------|----------|----------|----------|-------------------|
All files | 48.9 | 27.99 | 43.43 | 49.41 | |
components/analysis/functional | 95.83 | 72.73 | 87.5 | 95.83 | |
QuickGOCard.vue | 95.83 | 72.73 | 87.5 | 95.83 | 83 |
components/analysis/statistics | 100 | 83.33 | 100 | 100 | |
MissingPeptidesList.vue | 100 | 83.33 | 100 | 100 | 73 |
components/custom | 53.85 | 0 | 0 | 53.85 | |
Tooltip.vue | 100 | 100 | 100 | 100 | |
Utils.ts | 14.29 | 0 | 0 | 14.29 | 9,10,11,13,23,24 |
components/tables | 100 | 100 | 100 | 100 | |
FaSortSettings.ts | 100 | 100 | 100 | 100 | |
components/visualizations | 86.96 | 62.5 | 62.5 | 86.36 | |
HierarchicalOutlineVisualization.vue | 86.96 | 62.5 | 62.5 | 86.36 | 57,63,69 |
logic | 21.43 | 0 | 5.71 | 21.77 | |
utils.ts | 21.43 | 0 | 5.71 | 21.77 |... 49,352,353,354 |
logic/data-management | 51.44 | 40.68 | 48.15 | 51.72 | |
MpaAnalysisManager.ts | 100 | 100 | 100 | 100 | |
Node.ts | 82.14 | 66.67 | 80 | 81.48 | 98,99,100,101,103 |
PeptideContainer.ts | 87.5 | 100 | 80 | 87.5 | 24 |
SearchTree.ts | 34.78 | 12.5 | 17.39 | 35.16 |... 80,191,192,193 |
StorageType.ts | 100 | 100 | 100 | 100 | |
Tree.ts | 51.39 | 50 | 57.14 | 52.17 |... 65,166,168,198 |
index.ts | 100 | 100 | 100 | 100 | |
logic/data-management/assay | 72.73 | 0 | 52.63 | 72.73 | |
Assay.ts | 68.75 | 0 | 54.55 | 68.75 | 29,37,41,45,53 |
MetaProteomicsAssay.ts | 76.47 | 100 | 50 | 76.47 | 25,29,33,37 |
logic/data-management/counts | 90.48 | 40 | 71.43 | 90 | |
CountTable.ts | 100 | 50 | 100 | 100 | 10,13 |
ECCountTable.ts | 75 | 100 | 0 | 75 | 7 |
GOCountTable.ts | 75 | 100 | 0 | 75 | 7 |
TaxaCountTable.ts | 100 | 0 | 100 | 100 | 8 |
logic/data-management/ontology | 100 | 100 | 100 | 100 | |
Ontologies.ts | 100 | 100 | 100 | 100 | |
Ontology.ts | 100 | 100 | 100 | 100 | |
logic/data-management/ontology/ec | 20.69 | 0 | 0 | 23.08 | |
ECOntology.ts | 20.69 | 0 | 0 | 23.08 |... 41,43,44,45,46 |
logic/data-management/ontology/go | 35.71 | 0 | 0 | 41.67 | |
GeneOntology.ts | 35.71 | 0 | 0 | 41.67 |... 16,20,22,23,24 |
logic/data-management/ontology/taxa | 76.47 | 80 | 75 | 75 | |
NCBITaxonomy.ts | 76.47 | 80 | 75 | 75 |... 56,58,59,60,62 |
logic/data-management/visitors/storage | 66.67 | 50 | 50 | 66.67 | |
StorageDataReader.ts | 66.67 | 50 | 50 | 66.67 | 11,13,16 |
StorageWriter.ts | 66.67 | 50 | 50 | 66.67 | 11,13,16 |
logic/data-management/visitors/storage/browser | 74.42 | 68.75 | 70 | 74.42 | |
BrowserStorageCommon.ts | 50 | 50 | 66.67 | 50 |... 16,17,18,20,21 |
BrowserStorageConsts.ts | 100 | 100 | 100 | 100 | |
BrowserStorageDataReader.ts | 83.33 | 75 | 66.67 | 83.33 | 10,18 |
BrowserStorageWriter.ts | 84.62 | 75 | 66.67 | 84.62 | 11,19 |
logic/data-source | 19.8 | 4.9 | 13.24 | 20.52 | |
CachedDataSource.ts | 10.42 | 0 | 0 | 10.42 |... 07,110,112,113 |
DataRepository.ts | 40 | 16.67 | 33.33 | 40 | 18,19,21,25,26,28 |
DataSource.ts | 100 | 100 | 100 | 100 | |
DataSourceCommon.ts | 30 | 28.57 | 33.33 | 30 |8,9,20,21,22,24,35 |
EcDataSource.ts | 4.58 | 0 | 0 | 4.84 |... 80,283,284,287 |
Element.ts | 100 | 100 | 100 | 100 | |
GoDataSource.ts | 6.19 | 0 | 0 | 6.45 |... 01,204,206,209 |
TaxaDataSource.ts | 33.96 | 10.53 | 30.77 | 35.29 |... 16,117,121,122 |
TaxaElement.ts | 20 | 0 | 0 | 22.22 |... 15,16,17,21,22 |
TaxumRank.ts | 85.71 | 50 | 50 | 85.71 | 33,34,35,36,39 |
logic/data-source/repository | 87.5 | 50 | 71.43 | 87.5 | |
MetaProteomicsDataRepository.ts | 87.5 | 50 | 71.43 | 87.5 | 50,51,60,61 |
logic/functional-annotations | 46.77 | 26.67 | 25 | 48.33 | |
EcNameSpace.ts | 62.5 | 50 | 33.33 | 62.5 | 24,28,29,30,31,34 |
EcNumber.ts | 11.76 | 0 | 0 | 12.5 |... 38,41,45,59,60 |
FAElement.ts | 63.64 | 0 | 25 | 70 | 20,24,28 |
FATrust.ts | 25 | 100 | 0 | 25 | 7,8,9 |
GoNameSpace.ts | 50 | 50 | 50 | 50 | 8,9,10,11,14 |
GoTerm.ts | 100 | 100 | 100 | 100 | |
logic/patterns/progress | 100 | 100 | 100 | 100 | |
ProgressPublisher.ts | 100 | 100 | 100 | 100 | |
logic/processors/count | 100 | 100 | 100 | 100 | |
TaxaCountProcessor.ts | 100 | 100 | 100 | 100 | |
logic/processors/peptide | 52.17 | 60 | 42.86 | 54.55 | |
ECPeptideProcessor.ts | 66.67 | 100 | 33.33 | 80 | 8 |
FAPeptideProcessor.ts | 10 | 20 | 20 | 10 |... 26,28,29,31,35 |
GOPeptideProcessor.ts | 66.67 | 100 | 33.33 | 80 | 8 |
TaxaPeptideProcessor.ts | 100 | 100 | 100 | 100 | |
logic/processors/peptide/container | 94.64 | 70 | 100 | 94.12 | |
PeptideContainerProcessor.ts | 100 | 100 | 100 | 100 | |
process.ts | 93.02 | 62.5 | 100 | 92.11 | 68,85,98 |
test | 85.33 | 100 | 55.17 | 85.14 | |
ClipboardMock.ts | 44.44 | 100 | 33.33 | 44.44 | 5,12,19,23,27 |
LocalStorageMock.ts | 25 | 100 | 14.29 | 25 | 5,9,13,17,21,25 |
Mock.ts | 100 | 100 | 100 | 100 | |
MockPeptideContainerProcessor.ts | 100 | 100 | 75 | 100 | |
Setup.ts | 100 | 100 | 100 | 100 | |
------------------------------------------------|----------|----------|----------|----------|-------------------|