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

Annotate cells that are expected to error as a form of (unit-)testing #22

Open
rodrigogiraoserrao opened this issue Feb 3, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@rodrigogiraoserrao
Copy link
Contributor

Following up on #21, it would be great if there was some way of annotating cells that are expected to error.
Ideally, the build system would take that to mean that a cell errors if and only if it is annotated as such; if this condition is not met, building the book would fail and we'd get a report showing what went wrong, where.

@rodrigogiraoserrao rodrigogiraoserrao added the enhancement New feature or request label Feb 3, 2022
@rodrigogiraoserrao
Copy link
Contributor Author

Jupyter Book has an option execute: allow_errors that controls whether or not we allow errors to happen.
There is also a tag that we can use to let the build system know that a given cell is expected to error.
Using these two together will likely do the trick.
However, for these to work, the Dyalog kernel has to be tweaked so that error outputs are seen as such by the Jupyter interface.
Currently, Dyalog APL errors aren't picked up in the same way as, say, errors in Python notebooks are picked up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant