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

No TDD possible with nbval #14

Closed
michaelaye opened this issue Nov 10, 2016 · 5 comments
Closed

No TDD possible with nbval #14

michaelaye opened this issue Nov 10, 2016 · 5 comments

Comments

@michaelaye
Copy link
Contributor

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?

@takluyver
Copy link
Member

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.

@michaelaye
Copy link
Contributor Author

ok, thanks!

@fangohr
Copy link
Member

fangohr commented Nov 10, 2016

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

@michaelaye
Copy link
Contributor Author

Sorry, off-topic but:
Hallo Hans und MoinMoin!
Hamburger Jung, wa? ;) Ich komm aus Heide/Holstein, war immer gerne in Hamburg. Jetzt in Colorado. Hoffe es regnet nicht noch mehr in Southhampton als in Hamburg! ;)

@fangohr
Copy link
Member

fangohr commented Nov 11, 2016

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.

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