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

Docs: change nosetest instruction #4327

Closed
ict4eo opened this issue Jul 23, 2013 · 14 comments · Fixed by #11913

Comments

@ict4eo
Copy link

commented Jul 23, 2013

Running Ubuntu 12.10. The recommended way of running tests (http://pandas.pydata.org/pandas-docs/stable/install.html#running-the-test-suite)

nosetests pandas

did not work. I had to use:

nosetests --exe pandas

It would also be useful to know how to avoid the:

OperationalError: (1046, 'No database selected')

errors.

@cpcloud

This comment has been minimized.

Copy link
Member

commented Jul 23, 2013

this should only happen if you're trying to run the tests from the installed location and not from the git repo

see #761

if you're running from the installed location please close

you should run the tests from the git clone, not the installed version

@lodagro

This comment has been minimized.

Copy link
Contributor

commented Jul 24, 2013

There are many users without a git repo (e.g. pip install ...). So may be good to explain how to run tests, when those are installed as executable files.

@jreback

This comment has been minimized.

Copy link
Contributor

commented Sep 26, 2013

@cpcloud

This comment has been minimized.

Copy link
Member

commented Sep 26, 2013

wiki or doc blurb?

@jreback

This comment has been minimized.

Copy link
Contributor

commented Sep 26, 2013

I think there is a section on main website already
just needs to be updated I think

@jreback

This comment has been minimized.

Copy link
Contributor

commented Mar 9, 2014

@cpcloud I think we should have

pd.run_tests() or something?

@jreback jreback modified the milestones: 0.14.1, 0.14.0 Apr 30, 2014

@cpcloud

This comment has been minimized.

Copy link
Member

commented Jun 4, 2014

@jreback what's wrong with

import nose
nose.run()

?

@jreback

This comment has been minimized.

Copy link
Contributor

commented Jun 4, 2014

does it work?

(can do a wrapper function around it I guess)

@cpcloud

This comment has been minimized.

Copy link
Member

commented Jun 4, 2014

it runs the tests .... what else would we put in a wrapper?

@jreback

This comment has been minimized.

Copy link
Contributor

commented Jun 4, 2014

well, ideally want something like

nosetests -A 'not slow and not disabled and not network' ....

and maybe need a 'not db' somehow

in theory options for this too

@jreback

This comment has been minimized.

Copy link
Contributor

commented Jun 4, 2014

numpy has a run_tests which is overkill but something like what we want

@cpcloud

This comment has been minimized.

Copy link
Member

commented Jun 4, 2014

ok so something that runs the tests but is "nicer" than:

nose.run(argv=["-A 'not slow and not network'"])
@cpcloud

This comment has been minimized.

Copy link
Member

commented Jun 4, 2014

like pd.run_tests(attr='not slow and not network')?

@jreback

This comment has been minimized.

Copy link
Contributor

commented Jun 4, 2014

yep

@jreback jreback modified the milestones: 0.15.0, 0.14.1 Jun 19, 2014

@jreback jreback modified the milestones: 0.16.0, Next Major Release Mar 6, 2015

jreback added a commit to jreback/pandas that referenced this issue Jan 3, 2016
jreback added a commit that referenced this issue Jan 8, 2016
Merge pull request #11913 from jreback/tester
ENH: add pd.test to enable nose test runnning from the imported session, #4327
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants
You can’t perform that action at this time.