Skip to content

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

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

Merged
merged 9 commits into from
Sep 5, 2021

Conversation

oleksandr-pavlyk
Copy link
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
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.

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
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