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

Add automatic tests to rst doc code snippets #272

Merged
merged 15 commits into from
Jan 14, 2021
Merged

Add automatic tests to rst doc code snippets #272

merged 15 commits into from
Jan 14, 2021

Conversation

mttk
Copy link
Member

@mttk mttk commented Jan 14, 2021

Closes #268

Nits: since most of the tests use SST, the .. testcleanup:: [flag] needs to be updated to the last test executed in each rst file so the downloaded files get deleted.
This can be done via the global cleanup argument in conf.py, but then SST is downloaded again for each test group and that takes too much time.

Some larger snippets were skipped (e.g. downloading GloVe, running Iterators over IMDB & downloading IMDB).

@mariosasko make html doesn't run the tests -- right now I run them manually with sphinx-build -b doctest source build from the docs folder. Can we add this to a make command for running tests?
Doc tests can be ran by make doctest from the docs folder.

@mttk mttk self-assigned this Jan 14, 2021
docs/source/advanced.rst Outdated Show resolved Hide resolved
docs/source/advanced.rst Outdated Show resolved Hide resolved
docs/source/advanced.rst Outdated Show resolved Hide resolved
docs/source/walkthrough.rst Show resolved Hide resolved
docs/source/advanced.rst Outdated Show resolved Hide resolved
docs/source/walkthrough.rst Outdated Show resolved Hide resolved
@mttk mttk merged commit 005dd6a into master Jan 14, 2021
@mttk mttk deleted the docs_autotest branch January 14, 2021 19:08
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

Successfully merging this pull request may close these issues.

Validate docs
2 participants