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

Testing Jupyter notebooks #1889

Open
christian-oreilly opened this issue Jan 15, 2025 · 0 comments
Open

Testing Jupyter notebooks #1889

christian-oreilly opened this issue Jan 15, 2025 · 0 comments

Comments

@christian-oreilly
Copy link

I would like to add Jupyter notebook testing through my CI on GitHub. For this, I can use pytest --nb-test-files, which works fine. My understanding is that we can add whatever flags after hatch test and these will be passed to pytest. However, using hatch test --nb-test-files, I get the following error:

ERROR: usage: pytest [options] [file_or_dir] [file_or_dir] [...]
pytest: error: unrecognized arguments: --nb-test-files
  inifile: /Users/christian/Code/ipyniivue/pyproject.toml
  rootdir: /Users/christian/Code/ipyniivue

Any idea of what is going wrong there and how to fix it?

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

1 participant