astropy.test() should be able to test docstrings
See original GitHub issueMy conclusion from #8146 is that astropy.test()
(testing installed code) is not running the exact same set of tests under the same settings as python setup.py test
(testing full source code). Do we care? If so, what can we do about it (probably would involve refactoring the test runner)?
Issue Analytics
- State:
- Created 5 years ago
- Comments:14 (14 by maintainers)
Top Results From Across the Web
Testing Guidelines — Astropy v5.3.dev149+gd9cb18f5a
Testing Guidelines¶. This section describes the testing framework and format standards for tests in Astropy core and coordinated packages, and also serves ...
Read more >Testing Guidelines — Astropy v1.2.dev14793
The safest way to run the astropy test suite is via the setup command test . This is invoked by running python setup.py...
Read more >Testing Guidelines — Astropy v0.4.2
The safest way to run the astropy test suite is via the setup command test. This is invoked by running python setup.py test...
Read more >astropy/pytest-doctestplus
Python provides a mechanism for testing code snippets that are provided in Python docstrings. The unit test framework pytest provides a mechanism for...
Read more >Known Issues — Astropy v0.3.dev3797
Displaying long docstrings that contain Unicode characters may fail on some platforms ... When running the Astropy tests using astropy.test() in an IPython ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I suppose the difference is coming mainly from the fact that the narrative docs is not available in the installed version?
This is not at all surprising. I’m not sure if we care or not. If possible can you put a diff here?
Friends, I beg of you, let’s please consider axing the test runner entirely.