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
need misc updates for dev testing documentation #7127
Comments
|
Great, I did not realize it was a wiki, thought it was markdown in the main source. As for the test_pr.py thing, I don't really have a dog in that fight, and I just thought someone might like to know. All I can say is I guess I might use it if it worked.. I'm always nervous my testing invocation will differ in some significant way from whatever travis uses and it's just inelegant to waste travis build time/cycles.
I am the author of smash which does involve several extensions, but also digs really deep into the guts of ipython (trying hard to avoid a fork). Just for instance see some of my patches and core overrides. Note that while I'm twisting up the ipython core with extra features, I also want to ensure total backwards compatibility. So I'm struggling with a good approach for general testing, and hoped to improve documentation for posterity while I was learning my way around. It seems to me that vanilla unit tests (by which I mean tests that do NOT use |
Any progress on this? Is there anything we need to do? |
Needs info from me you mean? I'd say nothing has been resolved. Trying to make things more concrete:
Unit testing is straightforward for third party apps since they can do whatever, but, how best to write and run IPython.core style integration tests outside of IPython development? |
Sorry, I just went through a couple hundred issues and ended up adding needs-info to issues that I wasn't quite sure what the state was. Thanks, your note helps to clarify what needs to be done though. |
I should note I am fine getting rid of test_pr. @fperez do you still use it? |
test_pr is theoretically still useful for things we don't test on Travis, like IPython.parallel, or if Travis is down/achingly slow. We don't often use it, however, and presumably there'll be even less need for it after the repo split. |
Now that I have |
This was the last item to address in resolving ipython#7127, where it was deemed that there isn't much value in keeping this around.
Hey there. I'm going through old issues and it seems to me that it makes sense to close this one. There were multiple threads here, some of which have been addressed: wiki was edited, and a decision was made that removing |
oh, man, I forgot the two most important parts: thank you everyone and |
This issue refers to the documentation here: https://github.com/ipython/ipython/wiki/Dev%3A-Testing
Hopefully I'm looking at the right stuff. One example mentioned is
This doesn't work for me, because it should be
iptest IPythin.utils -- -v
. I seeAnother broken example is
python tools/test_pr.py -p 1234
, which broke for me because I didn't have the keyring module installed. Requirements are mentioned in the documentation nearby, but shouldn't this be installed as part of "ipython[all]" requirements? Once I installed keyring, the example still didn't work. Does this run on the official travis, and is only intended for core committers with extra privs, or can I expect to do this on my local env? I see:Finally and probably most importantly, I think a section on testing extensions is missing. Extension writers can unittest their own stuff however they wish, but obviously the more integration-style tests used in ipython core could be a very useful for complex extensions. Are there any existing thoughts about best practice here or better yet examples of third-party code doing this? Is iptest pretty agnostic about whether it's invoked on IPython.* or MyExtension.*? etc
Thanks
The text was updated successfully, but these errors were encountered: