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.server
server running. - Shell out to
wcurl
on every test, with thecwd
set 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 :^)
Merge request reports
Activity
Please register or sign in to reply