2 ms·
Python has something similar: https://docs.python.org/3/library/doctest.html https://docs.python.org/3/library/doctest.html For software with a command-line i
by twic 9y ago
Python has something similar:
https://docs.python.org/3/library/doctest.html https://docs.python.org/3/library/doctest.html
For software with a command-line interface, perhaps it would be useful to do some testing at that interface, perhaps using BATS:
https://github.com/sstephenson/bats https://github.com/sstephenson/bats
That is also automatically tested, but describes the actual user interface.