Draft: integration tests
This is a sketch to show my idea for integration tests. Since we discussed using Python's http.server, I felt that it was OK to write the entire test suite in Python instead of sh.
In this, we:
- Start a background thread with a
http.serverserver running. - Shell out to
wcurlon every test, with thecwdset to a separate temporary directory. - Assert stdout, stderr, files created, etc.
- Stop the server after all tests are finished.
Let me know what you think :^)