"what should I test?"
The parsing mechanics. There's no need to test the underlying net access stuff, it tests itself. Also, please don't enable by default internet bound tests in the unit test suite. These should be developer-only tests, with an env var for a user to enable them if they wish.
Set up a data directory within your test suite with a bunch of various HTML files with various URLs, and test the parsing functions.
If you need to test error codes and return values, you can mock out a request/response.
In reply to Re: What to test in a new module
by stevieb
in thread What to test in a new module
by Bod
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |