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: implement tests for full coverage #14

Closed
dmdunla opened this issue Jun 28, 2022 · 1 comment · Fixed by #128
Closed

Testing: implement tests for full coverage #14

dmdunla opened this issue Jun 28, 2022 · 1 comment · Fixed by #128
Assignees
Labels
doing Actively being worked on testing Testing related
Milestone

Comments

@dmdunla
Copy link
Collaborator

dmdunla commented Jun 28, 2022

If possible, implement tests to provide full coverage of TensorToolbox code:

pytest --cov=pyttb  tests/ --cov-report=term-missing
Name                   Stmts   Miss  Cover   Missing
----------------------------------------------------
pyttb\__init__.py         23      1    96%   31
pyttb\cp_als.py           87      0   100%
pyttb\cp_apr.py          567     78    86%   84, 86, 88, 110, 197-198, 229, 247-249, 342, 351, 374-384, 419-432, 464-469, 495, 536, 540-541, 649, 658, 681-691, 719-732, 781-786, 808, 813, 819, 871-872, 1016, 1034-1037, 1044-1045, 1230, 1297-1299, 1343
pyttb\export_data.py      63      1    98%   54
pyttb\import_data.py      60      4    93%   14, 24, 61, 72
pyttb\khatrirao.py        22      0   100%
pyttb\ktensor.py         468      5    99%   772, 812-816
pyttb\pyttb_utils.py     237      2    99%   293, 328
pyttb\sptenmat.py          4      0   100%
pyttb\sptensor.py        914      4    99%   117, 562, 608, 637
pyttb\sptensor3.py         4      0   100%
pyttb\sumtensor.py         4      0   100%
pyttb\symktensor.py        4      0   100%
pyttb\symtensor.py         4      0   100%
pyttb\tenmat.py          182      1    99%   183
pyttb\tensor.py          557      3    99%   1105, 1219, 1394
pyttb\ttensor.py           4      0   100%
----------------------------------------------------
TOTAL                   3204     99    97%
@ntjohnson1 ntjohnson1 mentioned this issue Feb 4, 2023
@dmdunla dmdunla added this to the v2.0 milestone Mar 16, 2023
@dmdunla dmdunla added the testing Testing related label Mar 16, 2023
@dmdunla dmdunla self-assigned this Mar 16, 2023
@dmdunla dmdunla added the doing Actively being worked on label Jun 2, 2023
@dmdunla
Copy link
Collaborator Author

dmdunla commented Jun 3, 2023

All but cp_apr has 100% coverage using pytest and coverage. Coveralls must use some other process to compute coverage, as the published coverage there is different than this:

Name                   Stmts   Miss  Cover   Missing
----------------------------------------------------
pyttb/__init__.py         25      0   100%
pyttb/cp_als.py           87      0   100%
pyttb/cp_apr.py          569     18    97%   273-274, 635, 821, 898-899, 998, 1006, 1012, 1255, 1275-1278, 1292-1293, 1574-1576
pyttb/export_data.py      68      0   100%
pyttb/hosvd.py            58      0   100%
pyttb/import_data.py      64      0   100%
pyttb/khatrirao.py        22      0   100%
pyttb/ktensor.py         519      0   100%
pyttb/pyttb_utils.py     233      0   100%
pyttb/sptenmat.py          4      0   100%
pyttb/sptensor3.py         4      0   100%
pyttb/sptensor.py        983      0   100%
pyttb/sumtensor.py         4      0   100%
pyttb/symktensor.py        4      0   100%
pyttb/symtensor.py         4      0   100%
pyttb/tenmat.py          188      0   100%
pyttb/tensor.py          697      0   100%
pyttb/ttensor.py         222      0   100%
pyttb/tucker_als.py       62      0   100%
----------------------------------------------------
TOTAL                   3817     18    99%

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
doing Actively being worked on testing Testing related
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant