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

Implement tests for Hissp REPL examples in documentation #13

Merged
merged 2 commits into from
Jun 2, 2019
Merged

Conversation

gilch
Copy link
Owner

@gilch gilch commented Jun 2, 2019

Sybil is now required to run these documentation tests.

The custom Sybil parser/evaluator only tests that the Lissp compiles to the expected Python. It does evaluate the results so it can update the document's namespace for future tests, but checking the output is left to doctest. This means the tests have to be run twice, but it also means that we get doctest's feature's for (like +ELLIPSIS) for free.

It only works on the README.md at the moment, but with some tweaks it could probably be made to run in .rst and .lissp files as well, which means our end-users might want it. I don't want to introduce a dependency for the PyPI package, but perhaps this could be split off into a separate project.

@gilch gilch merged commit f4cd41e into master Jun 2, 2019
@gilch gilch mentioned this pull request Jun 2, 2019
13 tasks
@gilch gilch deleted the tests branch November 12, 2019 00:28
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.

None yet

1 participant