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

Use pytest for python module tests #163

Closed
dvzrv opened this issue Feb 11, 2018 · 2 comments
Closed

Use pytest for python module tests #163

dvzrv opened this issue Feb 11, 2018 · 2 comments

Comments

@dvzrv
Copy link

dvzrv commented Feb 11, 2018

Title says it all: It would be awesome to use pytest instead of nose2 in the tests, as nose2 is only in maintenance release mode.

I'm currently packaging aubio for Arch Linux and would rather not pick up yet another test suite from the AUR to be able to provide a check() function for aubio's build script.

@piem
Copy link
Member

piem commented Apr 19, 2018

hi @dvzrv

Thanks for your work on packaging aubio for arch.

We are not really far from being able to run the test suite in pytest. Most of the tests already pass in pytest, the only feature missing is nose's @params decorator, but reading the following page, it shouldn't be to hard to port:

https://docs.pytest.org/en/latest/example/parametrize.html

Making nose2 optional would be nice indeed. A PR would be most welcome, of course. :)

@piem
Copy link
Member

piem commented Nov 1, 2018

hi there,

just to mention that I've just pushed a branch feature/pytest where i started updating the tests.

Running pytest should work in that branch, but it will take a few more iterations before all continuous integrations tests pass on all platforms.

Suggestions and patches welcome!

cheers, piem

@piem piem closed this as completed in 0045668 Dec 19, 2018
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

No branches or pull requests

2 participants