-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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 #875
Comments
maybe we want tox too, sounds like it could even simplify our CI scripting. |
So I'm not sure if we really want that.
I started migrating out our test framework to cotest, not sure though if we shouldn't just make our tests independent on module code and use pytest. Any opinions? |
Everything you said has plugins in pytest. There must be something for formatting I think it may be wiser to make our own pytest plugins if there are any issues with it in general -----Original Message----- So I'm not sure if we really want that. |
@AbdealiJK following tests fail when executed with pytest: |
Marking wontfix, for now our framework works and we need to focus. |
I think we'd greatly profit from using doctest which pytest provides so reopening this. |
Did you miss to reopen? |
@AbdealiJK DBus test is a huge problem because you rely on a custom main routine. Can you help? Currently looking into the rest... |
https://pypi.python.org/pypi/pytest-xprocess seems to be the answer to your issue. It spawns a process at the beginning and keeps that process going throughout the testing time. Although we want it only for 1 test, this seems the way to go. -----Original Message----- @AbdealiJK DBus test is a huge problem because you rely on a custom main routine. Can you help? Currently looking into the rest... |
@AbdealiJK sure that's the way to go? PyTest also supports test functions, so instead of putting the process spawning into the main routine we could put it into a |
I tried that when I first mentioned pytest (as far as I remember). It I think it's better to spawn a test dbus server - that way even On Sat, Jan 2, 2016 at 6:41 PM, Lasse Schuirmann notifications@github.com
|
@AbdealiJK do you have any hint about the other failures in pytest? Many are because of the test skipping but some seem to be very strange, like some tests of |
What exactly do you mean by the failures of pytest ? The major issues I
And what did you mean by the is_applicable thing ? What's strange about it ? On Sat, Jan 2, 2016 at 7:31 PM, Lasse Schuirmann notifications@github.com
|
FWIW I'm almost done with replacing our skip functionality, @AbdealiJK can you look into DBus? |
Ok, that's what I get after #1183: |
Alright, the DBusTest issue is resolved, think we can make the switch soon |
Now a new issue came up. If I do |
http://pytest.org/latest/goodpractises.html#integrating-with-distutils-python-setup-py-test
should be easy and cool :)
The text was updated successfully, but these errors were encountered: