Testing with Jupyter notebooks: NoteBook VALidation (nbval) plug-in for pytest

01/13/2020
by   Hans Fangohr, et al.
0

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.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
05/29/2019

Configuration Testing: Testing Configuration Values as Code and with Code

This paper proposes configuration testing--evaluating configuration valu...
research
12/02/2020

Production Monitoring to Improve Test Suites

Software testing ensures that a software system behaves as intended. In ...
research
06/15/2023

Update on the Verification and Validation Efforts for the Stakeholder Tool for Assessing Radioactive Transportation

The United States Department of Energy (U.S. DOE) is planning for the tr...
research
09/14/2023

Asynchronous Integration of Real-Time Simulators for HIL-based Validation of Smart Grids

As the landscape of devices that interact with the electrical grid expan...
research
09/01/2021

Unsub Extender: a Python-based web application for visualizing Unsub data

This article introduces Unsub Extender, a free tool to help libraries an...
research
05/02/2023

Validation of massively-parallel adaptive testing using dynamic control matching

A/B testing is a widely-used paradigm within marketing optimization beca...
research
02/22/2022

XtraLibD: Detecting Irrelevant Third-Party libraries in Java and Python Applications

Software development comprises the use of multiple Third-Party Libraries...

Please sign up or login with your details

Forgot password? Click here to reset