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

Add pytests to CMake Test matrix #411

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

SilleBille
Copy link
Member

This patch:

  • includes pytests under tests/python/ dir in the CMake test matrix.
    Though the unit tests exited, they were never executed.

  • Fixes the deprecated pytest methods.

Note

The pytests were added to the CMake test matrix instead of adding them
to the spec file. This ensures that the pytests are executed in other platforms
(Debian).

Signed-off-by: Dinesh Prasanth M K <[email protected]>

This patch:

- includes pytests listed under tests/python/ dir
  in the CMake test matrix. Though the unit tests exited, they
  were never executed.

- Fixes the deprectated pytest methods.

Signed-off-by: Dinesh Prasanth M K <[email protected]>
@SilleBille SilleBille self-assigned this May 18, 2020
@SilleBille SilleBille added Enhancement New features and enhancements related to the product Unit Tests Unit tests that get executed during build time labels May 18, 2020
@SilleBille SilleBille added the Help Wanted The author requires someone's assistance to complete the PR label May 18, 2020
@SilleBille
Copy link
Member Author

Hmmm. pytest fails because it fails to access the modules.. The packages are not installed yet and so, the test fails. Any thoughts? @edewata @cipherboy

@SilleBille
Copy link
Member Author

SilleBille commented May 19, 2020

digging deeper, this can be achieved using tox. We have several setup.py files lying around and I will resubmit this PR after cleaning them up.

The only caveat is that, it's difficult for me to add this to CMake. Do you oppose executing pytest in spec files?

@SilleBille SilleBille marked this pull request as draft May 28, 2020 21:57
@cipherboy cipherboy removed their request for review February 4, 2022 01:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement New features and enhancements related to the product Help Wanted The author requires someone's assistance to complete the PR Unit Tests Unit tests that get executed during build time
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant