计算机科学 > 软件工程
[提交于 2020年1月13日]
标题:Testing with Jupyter notebooks: NoteBook VALidation (nbval) plug-in for pytest
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:The Notebook validation tool nbval allows to load and execute Python code from a Jupyter notebook file. While computing outputs from the cells in the notebook, these outputs are compared with the outputs saved in the notebook file, treating each cell as a test. Deviations are reported as test failures, with various configuration options available to control the behaviour. Application use cases include the validation of notebook-based documentation, tutorials and textbooks, as well as the use of notebooks as additional unit, integration and system tests for the libraries that are used in the notebook. Nbval is implemented as a plugin for the pytest testing software.
提交历史
来自:Marijan Beg[v1] 2020年1月13日 星期一 11:44:53 UTC