-
Notifications
You must be signed in to change notification settings - Fork 3
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
nosedep causes all ancestor unites classes to be executed #13
Comments
Right, I have always ran all the tests so specifying the class has not been tested. But I can reproduce the issue and will have a look. |
When specifying a specific class on the command line we should not run the all the ancestor unit tests.
I have committed a fix for this as you can see above. I have not done much testing but it seem to solve this exact case though. Can you check if it works for your use cases? |
Looks better on the surface; seems to give us an early bail-out when a
dependency fails (using "@Depends(after=test_thing_I_depend_on)").
It *seems* to also work when the dependency(def
test_thing_I_depend_on(self):) is (nose) parameterized as well, but our
tests take time, it's difficult to run through all right away.
So far, so good.
(thanks, btw)
Do you personally use parameterization ?
…On Sat, Nov 17, 2018 at 5:08 AM Zitrax ***@***.***> wrote:
I have committed a fix for this as you can see above. I have not done much
testing but it seem to solve this exact case though.
Can you check if it works for your use cases?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#13 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ACNonCgGZBxXm7NsABggxn7JQmf6Wv3Iks5uwApBgaJpZM4YafEA>
.
|
Ok that sounds good. I'll hold off releasing for a while then to see if something else shows up. I am not using parameterized tests with nose, so I am unsure of the status of that. |
When testing #12, ran into another issue:
(based on
decorated_functional_dep_skip
, edited similar to #12, alldepends
removed, two descendent classes added)Run with the following shows only 6 unittests as expected:
nosetests --no-byte-compile --with-xunit -v -s ./testfail.py:descendent1
Run with the
--with-nosedep
option, and now all ancestor and descendent classes (6 x 3 == 18 tests) also executed:nosetests --no-byte-compile --with-nosedep --with-xunit -v -s ./testfail.py:descendent1
The text was updated successfully, but these errors were encountered: