Can we run PyTest on are packages with this? #635
-
Is it possible to write test cases in Python for a Python extension written language XYZ using something like PyTest to validate the functionality in the extensions using Meson-Python layer? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
Sure. This question isn't very related to The language that a package is written in shouldn't matter here, as long as the package builds fine. E.g., SciPy has extension modules in C, C++, Cython and Fortran. They all have tests written in Python. |
Beta Was this translation helpful? Give feedback.
Sure. This question isn't very related to
meson-python
.meson-python
lets you install Python packages built with Meson. If that package haspytest
-compatible tests, then yes you can runpytest
.The language that a package is written in shouldn't matter here, as long as the package builds fine. E.g., SciPy has extension modules in C, C++, Cython and Fortran. They all have tests written in Python.