-
Notifications
You must be signed in to change notification settings - Fork 51
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
No TDD possible with nbval #14
Comments
My view is that nbval is more a way to check that examples are not broken, rather than a replacement for traditional unit tests. You could, of course, write a notebook using the public API of a module that doesn't exist yet, ignoring any output, and write the module, using nbval to see when the notebook runs without errors. But that approach doesn't seem terribly practical. |
ok, thanks! |
Hi @michaelaye, thanks for the comments and input. I am also interested in realising TDD with Jupyter. I started to put an example together at https://github.com/fangohr/tdd-with-jupyter ; maybe that is of interest. Any comments and new ideas welcome :) Best wishes, Hans |
Sorry, off-topic but: |
Hi Michael and moinmoin, too :) Yes, weather in Southampton is significantly warmer, and also less rainy. Or at least no prolonged periods of rain; compared to Hamburg. |
So, I really like the simplicity of nbval, but was wondering:
Sometimes it's really nice to clear you mind about what you actually want from a new module by doing TDD, meaning writing a few tests for the non-existing API or module and then develop it, reducing the failing tests one by one.
Do you envision something like that to be possible with
nbval
?The text was updated successfully, but these errors were encountered: