Skip to content

Transition all Python API to use pytest over unittest, improved coverage in dpctl/memory #575

Merged
oleksandr-pavlyk merged 9 commits intomasterfrom
coverage_memory
Sep 5, 2021
Merged

Transition all Python API to use pytest over unittest, improved coverage in dpctl/memory #575
oleksandr-pavlyk merged 9 commits intomasterfrom
coverage_memory

Conversation

@oleksandr-pavlyk
Copy link
Copy Markdown
Contributor

@oleksandr-pavlyk oleksandr-pavlyk commented Sep 3, 2021

Changed all test files that used unittest to use pytest instead.

Expanded tests to improve coverage.

Fixed several unreferenced bugs/crashes uncovered by expanded test suite.

@coveralls
Copy link
Copy Markdown
Collaborator

coveralls commented Sep 3, 2021

Coverage Status

Coverage increased (+1.7%) to 70.67% when pulling ba40dab on coverage_memory into 5544129 on master.

Comment thread dpctl/memory/_memory.pyx Outdated
Comment thread dpctl/tests/test_sycl_kernel_submit.py Outdated
1. Added a test to check MemoryConstructor(other_memory_object)
2. Add test_sycl_usm test to use copy_from_device
3. Added tests to check validation of __sycl_usm_array_interface__ in memory objects
Added tests to excercise device_context on all platforms
It appears that unittest-based tests did not participate
in the coverage collection data.
@oleksandr-pavlyk oleksandr-pavlyk changed the title Coverage memory Transition all Python API to use pytest over unittest, improved coverage in dpctl/memory Sep 5, 2021
@oleksandr-pavlyk
Copy link
Copy Markdown
Contributor Author

The Python API portion is now reasonably covered with test suite. Coverage of tensor submodule will be improved in a forthcoming PR.

image

@oleksandr-pavlyk oleksandr-pavlyk merged commit fdb3919 into master Sep 5, 2021
@oleksandr-pavlyk oleksandr-pavlyk deleted the coverage_memory branch September 5, 2021 19:25
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.

2 participants