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
Closed

Docs: change nosetest instruction #4327

ict4eo opened this issue Jul 23, 2013 · 14 comments · Fixed by #11913
Labels
Docs Testing pandas testing functions or related to the test suite

Comments

@ict4eo
Copy link

ict4eo 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
Copy link
Member

cpcloud 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
Copy link
Contributor

lodagro 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
Copy link
Contributor

jreback commented Sep 26, 2013

@cpcloud ?

@cpcloud
Copy link
Member

cpcloud commented Sep 26, 2013

wiki or doc blurb?

@jreback
Copy link
Contributor

jreback commented Sep 26, 2013

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

@jreback
Copy link
Contributor

jreback 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
Copy link
Member

cpcloud commented Jun 4, 2014

@jreback what's wrong with

import nose
nose.run()

?

@jreback
Copy link
Contributor

jreback commented Jun 4, 2014

does it work?

(can do a wrapper function around it I guess)

@cpcloud
Copy link
Member

cpcloud commented Jun 4, 2014

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

@jreback
Copy link
Contributor

jreback 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
Copy link
Contributor

jreback commented Jun 4, 2014

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

@cpcloud
Copy link
Member

cpcloud 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
Copy link
Member

cpcloud commented Jun 4, 2014

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

@jreback
Copy link
Contributor

jreback 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 that referenced this issue Jan 8, 2016
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
Labels
Docs Testing pandas testing functions or related to the test suite
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants