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

Option to select only notebook tests #99

Closed
gasparka opened this issue Aug 22, 2018 · 4 comments
Closed

Option to select only notebook tests #99

gasparka opened this issue Aug 22, 2018 · 4 comments

Comments

@gasparka
Copy link
Contributor

The pytest --nbval picks all the tests it finds. It would be useful to have an option to select only the notebooks. I found some ways to do this via .cfg file, but command line option would be better.
Ideas?

@vidartf
Copy link
Collaborator

vidartf commented Aug 23, 2018

You could skip python tests with the flags -p no:python, i.e. in full py.test -p no:python --nbval.

@vidartf
Copy link
Collaborator

vidartf commented Aug 23, 2018

@gasparka
Copy link
Contributor Author

Thanks! Useful enough to add to the readme?

@takluyver
Copy link
Member

I think it could be added to the README.

takluyver added a commit that referenced this issue Aug 24, 2018
Document how to collect notebook tests only, resolves #99
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants