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

Add support for running DocTest #2144

Closed
spyder-bot opened this issue Feb 17, 2015 · 7 comments
Closed

Add support for running DocTest #2144

spyder-bot opened this issue Feb 17, 2015 · 7 comments

Comments

@spyder-bot
Copy link
Collaborator

From [email protected] on 2015-01-27T19:21:34Z

Doctest is a useful built-in library in Python.

I would find it very useful if Spyder could run doctest on the active editor file.

Original issue: http://code.google.com/p/spyderlib/issues/detail?id=2144

@spyder-bot spyder-bot added this to the v2.4 milestone Feb 17, 2015
@spyder-bot
Copy link
Collaborator Author

From [email protected] on 2015-01-27T16:26:29Z

I've actually already started making a plugin for this. It can be found at: https://github.com/dougthor42/spyder-doctest-plugin It's still pretty basic, but it works for the most part. I think it has issues if the code has to wait for user input at any point, but it's a start.

You can take a look at the docs on the github page to see what I have planned for it.

To install:

Download doctestgui.py and p_doctest.py (also test_doctestgui.py if you want to run doctestgui.py stand-alone). Put doctestgui.py (and test_doctestgui.py) into
...\site-packages\spyderplugins\widgets
and put p_doctest.py into
...\site-packages\spyderplugins\

@spyder-bot
Copy link
Collaborator Author

From ccordoba12 on 2015-01-30T14:32:31Z

I think this is too specialized to belong to Spyder properly, but it's just fine for a third party plugin.

We are going to improve how to install this kind of plugins in 2.4.

I'll let you know when that happens, so you can distribute your plugin more easily.

Summary: Add support for running DocTest (was: Add support for running DocTest on editor file)
Labels: MS-v2.4 Cat-Miscelleneous

@spyder-bot
Copy link
Collaborator Author

From [email protected] on 2015-02-03T12:47:01Z

Thanks Carlos, that sounds good to me.

@dougthor42
Copy link
Contributor

Adding comment so that I get notifications and so that I can find my issues/comments more easily.

@dougthor42

@Nodd
Copy link
Contributor

Nodd commented Apr 7, 2015

For information I started some time ago a plugin to run nosetests/pytets : https://github.com/Nodd/spyder_unittesting
If correctly configured it should run doctests too (but on a whole project, not on the current file)

@goanpeca
Copy link
Member

goanpeca commented Jan 13, 2017

@jitseniesen I think this is related to your work on spyder-unittest.

We should maybe close this and move to the spyder-unittest repo?

@jitseniesen
Copy link
Member

This issue was moved to spyder-ide/spyder-unittest#44

@ccordoba12 ccordoba12 removed this from the wishlist milestone Jan 14, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants