推荐学习书目
› Learn Python the Hard Way
Python Sites
› PyPI - Python Package Index
› http://diveintopython.org/toc/index.html
› Pocoo
值得关注的项目
› PyPy
› Celery
› Jinja2
› Read the Docs
› gevent
› pyenv
› virtualenv
› Stackless Python
› Beautiful Soup
› 结巴中文分词
› Green Unicorn
› Sentry
› Shovel
› Pyflakes
› pytest
Python 编程
› pep8 Checker
Styles
› PEP 8
› Google Python Style Guide
› Code Style from The Hitchhiker's Guide
oahebky
V2EX  ›  Python

使用 Jupyter Notebook 做“测试”(TestCase)太完美!?

  •  
  •   oahebky · Aug 13, 2019 · 2142 views
    This topic created in 2600 days ago, the information mentioned may be changed or developed.

    最近写项目代码都尽可能做成库 /模块的形式。

    在使用 Jupyter Notebook 在边开发边测试的时候发现:

    • 遇到有问题的位置(比如操作数据)再稍微调整一下(还原);
    • 然后 ⏩ (重启运行所有代码);
    • 最后整个 .ipynb 就相当于单元测试了;
    • 有新功能开发的时候,改完打开 .ipynb 再运行一遍就可以了(回归测试)。

    在 Sublime/Pycharm 开发》在 Notebook 中测试 》自动变成》(新的开发》)回归测试。

    “开发测试”和“回归测试” 完美地在一个 .ipynb 中解决了!

    大家是不是也是这么干的?????

    最后,有没有好的 .ipynb 就像看书籍或者看教程(质量高)一样的分享网站之类的?

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2556 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 12:27 · PVG 20:27 · LAX 05:27 · JFK 08:27
    ♥ Do have faith in what you're doing.