jupyter / papyri

MIT License
84 stars 17 forks source link

Write a test-suite with source/expected outputs. #178

Open Carreau opened 2 years ago

Carreau commented 2 years ago

We come across a number of edge case when parsing pieces of RST, so we do have custom logics. Currently we rerun papyri on all of numpy/scipy and make sure it does not crash.

A better test harness would have a number of example snippets, and expected AST tree, and the test suite should compare that we are not regressing.

We should also have an easy to reach command line when the examples are wrong, and need to be updated.

Carreau commented 2 years ago

This has been started as part of #177

melissawm commented 10 months ago

Make sure to mock contents so there is no required installation/generation/ingesting of real modules before running test suite.